JDK-8014254 : Selector in HttpServer introduces a 1000 ms delay when using KeepAlive
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 7,8
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2013-05-08
  • Updated: 2015-02-02
  • Resolved: 2013-05-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8
7u80Fixed 8 b91Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Description
com.sun.net.httpServer uses a selector to get notified for interesting events (such as arrival of a new connection, or data available to read on an existing connection), but imposes a timeout of 1000 ms on the selector. Although this is not a problem when the server uses a threadpool, but for a single threaded server, this timeout gives rise to a bottleneck and should be reduced to a lower value.