Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.0.7
Description
HttpServerDecoder is broken in the case an HTTP request is received in two separate packets and the first one is not big enough to contain the header.
So, when the first packed is received, the state is switch to HEAD, and the incoming packed is saved in the context.
When the second packet is received, then the header is decoded and written to the output and the state is switched to BODY. But as the incoming buffer has been accumulated into with the context buffer, its remaining is 0 and the caller will not call the decoder again. So when the next request is received, the state will be BODY and CRASH!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
We should check if this also applies to 3.0