Simone Bordet fd1c9dd8d2 443713 - Reduce number of SelectionKey.setInterestOps() calls.
Introduced a state machine to handle the various scenarios (ST = selector thread, Tx = pooled thread):

ST: call to SCEP.onSelected() moves from SELECTING -> PENDING.
ST: call to SCEP.updateKey() moves from PENDING -> UPDATING -> SELECTING
T1: call to SCEP.changeInterests() moves (SELECTING | PENDING) -> CHANGING -> SELECTING

The race between ST and T1 to move from PENDING to either UPDATING or CHANGING will be won
by one thread only, which will then perform the call to SelectionKey.setInterestOps().
Preferably, this will be done by ST during an updateKey() call. If updateKey() has already
been invoked, then changeInterests() will perform the call to SelectionKey.setInterestOps().

However, if T1 loses, it still has to perform the key update, so it will spin until ST
moves back to SELECTING.
2014-09-10 21:45:27 +02:00
2012-11-20 09:48:52 -06:00
2014-07-23 16:49:05 +10:00
2012-07-17 21:37:33 +02:00
2013-11-04 16:50:18 -07:00
2011-07-06 14:41:50 -05:00
2013-10-03 09:25:10 +10:00
2013-08-30 07:04:21 -07:00
2014-07-14 11:16:35 -05:00

jetty-fcgi

Jetty FastCGI Support

Description
Eclipse Jetty® - Web Container & Clients - supports HTTP/2, HTTP/1.1, HTTP/1.0, websocket, servlets, and more
Readme Multiple Licenses 369 MiB
Languages
Java 98.9%
AMPL 0.4%
JavaScript 0.4%
Shell 0.1%
HTML 0.1%