Skip to content
This repository was archived by the owner on Jul 28, 2020. It is now read-only.

WIP Fix: partially matched buffer length should be ignored. - #100

Merged
kerryjiang merged 2 commits into
kerryjiang:masterfrom
HiraokaHyperTools:fix-92
Sep 24, 2019
Merged

kerryjiang merged 2 commits into
kerryjiang:masterfrom
HiraokaHyperTools:fix-92

Conversation

@kenjiuno

Copy link
Copy Markdown
Contributor
  • "HTTP/1.0 200 Connection Established\r\n" ← this "\r\n" returns context.SearchState.Matched == 2
    "Proxy-agent: Apache/2.2.29 (Win32)\r\n"
    "\r\n\r\n"

Fix #92

- "HTTP/1.0 200 Connection Established\r\n" <- this "\r\n" returns: context.SearchState.Matched == 2
  "Proxy-agent: Apache/2.2.29 (Win32)\r\n"
  "\r\n\r\n"
@kerryjiang

kerryjiang commented Sep 22, 2019

Copy link
Copy Markdown
Owner

But what about if the "/r/n" is coming in the following buffer?

Like

first buffer:
HTTP/1.0 200 Connection Established\r\n

second buffer
\r\n

@kenjiuno

Copy link
Copy Markdown
Contributor Author

@kerryjiang Thanks for reply!
Sorry. I didn't consider the partial matching at trailing (also heading?).
I'll rewrite my fix!

@kenjiuno kenjiuno changed the title Fix: partially matched buffer length should be ignored. WIP Fix: partially matched buffer length should be ignored. Sep 24, 2019
@kerryjiang
kerryjiang merged commit a229182 into kerryjiang:master Sep 24, 2019
@kerryjiang

kerryjiang commented Sep 24, 2019

Copy link
Copy Markdown
Owner

I like the test case, thank you!

@kenjiuno
kenjiuno deleted the fix-92 branch September 24, 2019 03:35
@kenjiuno

Copy link
Copy Markdown
Contributor Author

I like the test case, thank you!

Ahh, sorry it is still WIP (under construction)
I'll fill up, and send PR soon!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HttpConnectProxy.ProcessReceive fails when the second to last fragment ends in \r\n

2 participants