Duplicate :
|
|
Duplicate :
|
|
Relates :
|
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.