Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

http: bugfix on http_message_parser #259

Merged
merged 4 commits into from
Jun 3, 2019
Merged

Conversation

neverchanje
Copy link
Contributor

@neverchanje neverchanje commented May 31, 2019

bugfix:

  • fix the case where URL is very long, message->buffers.size() will unexpectedly be 4, but not 3.
    This case has been checked in http_message_parser_test.parse_long_url.

  • fix the assertion where message->buffers.size() == 3. This is always true if everything works fine, but for robustness, the server will handle this case instead of being killed.
    This case has been checked in http_message_parser_test.parse_bad_request.

Check Lists:

  • Unit tests

  • Works fine on pprof heap profiling.

@neverchanje neverchanje added type/bug-fix This PR fixes a bug. component/rpc labels May 31, 2019
qinzuoyan
qinzuoyan previously approved these changes May 31, 2019
@qinzuoyan qinzuoyan merged commit d3309b2 into XiaoMi:master Jun 3, 2019
@neverchanje neverchanje deleted the http branch June 3, 2019 06:29
neverchanje pushed a commit that referenced this pull request Jun 3, 2019
neverchanje pushed a commit that referenced this pull request Jun 28, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
1.11.4 type/bug-fix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants