javaee / grizzly

Writing scalable server applications in the Java™ programming language has always been difficult. Before the advent of the Java New I/O API (NIO), thread management issues made it impossible for a server to scale to thousands of users. The Grizzly NIO framework has been designed to help developers to take advantage of the Java™ NIO API.
https://javaee.github.io/grizzly/
Other
222 stars 60 forks source link

HTTP/2 Upgrade attempt without the HTTP/2 filters in use with a payload could end up timing out. #1972

Closed rlubke closed 6 years ago

rlubke commented 6 years ago

When attempting an upgrade, content modifiers will be ignored and then an event is fired. However, when the HTTP/2 filters aren't installed, this event isn't handled. and thus the logic to handle the upgrade doesn't reset this flag. Because of these, a request body could be fully buffered, but the last flag on the HttpContent buffer is never set causing any further attempts to read in an attempt to get to EOF, to timeout.

glassfishrobot commented 6 years ago

Closing this as this issue is migrated to https://github.com/eclipse-ee4j/grizzly/issues/1972