Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8278706 | 19 | Julia Boes | P3 | Resolved | Fixed | team |
Since jwebserver is configured with a single thread executor it is important to ensure this thread does not block unnecessarily. Unfortunately, any https request to the server causes such a block because the server is waiting for a plaintext http request header block but receives the initial binary handshake message for TLS.
The "sun.net.httpserver.maxReqTime" system property can be set to limit the time waiting for a request to arrive. Given that the server is only serving static GET requests, a reasonable value to set for this property could be a few seconds.
The "sun.net.httpserver.maxReqTime" system property can be set to limit the time waiting for a request to arrive. Given that the server is only serving static GET requests, a reasonable value to set for this property could be a few seconds.
- backported by
-
JDK-8278706 jwebserver should set request timeout
-
- Resolved
-
- relates to
-
JDK-8278398 jwebserver: Add test to confirm maximum request time
-
- Resolved
-