-
Notifications
You must be signed in to change notification settings - Fork 43
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
Upgrade data is not parsed correctly on JRuby #23
Comments
This might be fixed on the |
What are the steps to use I've tried adding
|
@samflores you might also have a bad time due to Goliath locking its |
@jcoglan Rubygems dependency management is not my area of expertise, but It seems the version in |
I discovered this while investigating faye/faye-websocket-ruby#18.
The following script constructs a draft-76 WebSocket request with 8 random bytes of upgrade data in the body after the headers. It then uses
Http::Parser
to process it and spit out the expected and parsed upgrade data bytes:On MRI 1.9.3-p392, the expected and actual results always match. But on JRuby 1.7.2, the actual output bytes are different from the expected ones, and
parser.upgrade_data
often contains more than the intended 8 bytes.I'm not sure if I'm using it wrong or if this is a bug in
Http::Parser
.The text was updated successfully, but these errors were encountered: