-
Notifications
You must be signed in to change notification settings - Fork 461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some bug in your code #10
Comments
I think the variable
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In your
HttpUtil.parseHttpRequest()
method:the variable
bodyEndIndex
should bebodyStartIndex + httpHeaders.contentLength + 1
rather thanbodyStartIndex + httpHeaders.contentLength
In your
Message.writePartialMessageToMessage
method:the variable
startIndexOfPartialMessage
should just beendIndex + 1
rather thanmessage.offset + endIndex
.the variable
lengthOfPartialMessage
should be(message.offset + message.length) - endIndex + 1
rather than(message.offset + message.length) - endIndex
I got a NPE when invoking the
HttpMessageReader.read()
.The code snippet is shown below:To solve the problem,I add some code in your
QueueIntFlip.take()
method:The text was updated successfully, but these errors were encountered: