Skip to content
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

JSR356Endpoint discards header values #1944

Closed
Artur- opened this issue Apr 17, 2015 · 0 comments
Closed

JSR356Endpoint discards header values #1944

Artur- opened this issue Apr 17, 2015 · 0 comments

Comments

@Artur-
Copy link
Contributor

Artur- commented Apr 17, 2015

When using Firefox, Glassfish 4 and JSR-356, websockets do not work. The upgrade process is ok but after that you get
Status code higher or equal than 400. Unable to deliver the websocket messages to installed component. Status 501 Message OK

The reason is that Firefox sends a
Connection: keep-alive, Upgrade
header in the upgrade request and https://github.com/Atmosphere/atmosphere/blob/master/modules/cpr/src/main/java/org/atmosphere/container/JSR356Endpoint.java#L126
discards everything but the first value, which happens to be "keep-alive" in this case.

Unsurprisingly, a later verification that a "Connection: upgrade" header exists fails because of this.

jfarcand added a commit that referenced this issue Apr 17, 2015
jfarcand added a commit that referenced this issue Apr 17, 2015
Artur- pushed a commit to vaadin/atmosphere that referenced this issue Nov 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants