Greg Wilkins
26f5ffc459
jetty-9 improve SslConnection toString
2012-09-11 08:04:33 +10:00
Greg Wilkins
73ebe89019
jetty-9 refactored configuration
2012-09-10 20:26:14 +10:00
Greg Wilkins
a15d71932f
jetty-9 protection from double onFillable calls
2012-09-09 08:31:31 +10:00
Greg Wilkins
2bb425d0b2
jetty-9 improved buffer recycling
2012-09-09 07:42:03 +10:00
Simone Bordet
236df8e94b
Jetty9 - Fixed compilation issues.
2012-09-06 09:37:11 +02:00
Simone Bordet
7231c82b69
Merged branch 'jetty-9' into jetty-9-client.
2012-09-06 08:41:48 +02:00
Simone Bordet
2715f64441
Jetty9 - Fourth take at HTTP client implementation.
2012-09-05 13:33:38 +02:00
Simone Bordet
b18ab0e76a
Jetty9 - First take at HTTP client implementation.
2012-09-04 19:20:29 +02:00
Greg Wilkins
c3776764f4
jetty-9 ConcurrentScheduler refinements
2012-09-03 15:24:36 +10:00
Greg Wilkins
83dbca6553
jetty-9 reworked the schedulers
2012-08-31 13:22:58 +10:00
Greg Wilkins
8c6ad12088
jetty-9 fixed ArrayByteBufferPool and added test
2012-08-31 08:05:09 +10:00
Thomas Becker
8fbe6c59d5
jetty-9 merge
2012-08-29 17:27:26 +02:00
Simone Bordet
d84eee0b46
Jetty9 - Reverted AbstractConnector to use MappedByteBufferPool, as ArrayByteBufferPool is leaking buffers.
2012-08-28 18:14:22 +02:00
Simone Bordet
7a2b53d987
Jetty9 - Dispatching the onConnect(Session) callback in a different thread.
...
This is needed for two reasons: the first is that onOpen() is called from the selector thread
and onConnect() may perform I/O (such as sending a SETTINGS frame), and second
because onOpen() may be called when NPN upgrades the connection.
In the latter case, SslConnection is busy with the SSL handshake (for example is filling)
and calling onConnect() triggers a write, that ends up in the SslConnection that sees that
it is still in the SSL handshake and needs to fill, resulting in a reentrant fill, which is not
supported correctly by SslConnection.
Dispatching to a new thread makes the call safe, since SslConnection is properly synchronized.
2012-08-28 15:20:14 +02:00
Simone Bordet
2339da7cc0
Jetty9 - Marked tests as @Slow.
2012-08-28 13:04:18 +02:00
Simone Bordet
5aa3702606
Jetty9 - Better logging.
2012-08-28 11:56:37 +02:00
Simone Bordet
6601b65162
Jetty9 - Made the test more reliable and marked it as slow.
2012-08-28 11:56:22 +02:00
Simone Bordet
7a1faf3c08
Jetty9 - Start counting for idleness when we register read interest.
...
Otherwise it was possible that the endPoint was created, upon creation
it started counting for idleness, after a while read interested was set
and the endPoint idle timed out before having the chance to read.
2012-08-28 11:55:01 +02:00
Simone Bordet
a935c26764
Jetty9 - Fixed typo.
2012-08-27 16:32:01 +02:00
Greg Wilkins
cb5dd493fb
jetty-9 merged jetty-9-aggregation
2012-08-27 10:24:34 +10:00
Greg Wilkins
1d654a08cf
jetty-9 restructured graceful shutdown
2012-08-24 20:16:23 +10:00
Simone Bordet
06b2de17d5
Merge branch 'jetty-9-aggregation' into jetty-9-spdy-http
2012-08-24 11:52:29 +02:00
Greg Wilkins
c707ba11d1
jetty-9 improved SSL shutdown input
2012-08-24 17:56:22 +10:00
Greg Wilkins
fac03a306b
jetty-9 more server test fixes
2012-08-24 16:53:36 +10:00
Greg Wilkins
cd719bf979
jetty-9 cleanups and fixes after refactor
2012-08-23 14:07:10 +10:00
Greg Wilkins
325bfc290d
jetty-9 work in progress on moving aggregation out of HttpChannel
2012-08-20 20:43:10 +10:00
Jesse McConnell
6ffaa478c4
standardize license headers
2012-08-17 16:09:49 -05:00
Joakim Erdfelt
3d1d76d214
Merge from jetty-8 to jetty-9 (license header standarization)
2012-08-17 13:44:22 -07:00
Jesse McConnell
5de0cee1eb
merge from master + license block standardization
2012-08-17 14:50:43 -05:00
Greg Wilkins
2a66567a5b
jetty-9 improved handling of half close
2012-08-17 15:34:53 +10:00
Jesse McConnell
00ed549898
standardize license header blocks
2012-08-16 19:11:27 -05:00
Greg Wilkins
c84b496330
jetty-9 more work on stop/close. Turned on statistics all of the time, but still not enough. more work needed.
2012-08-12 11:24:24 +10:00
Greg Wilkins
488f53f8d6
jetty-9 cleaned up the stop and stopTimeout handlng
2012-08-11 12:51:32 +10:00
Joakim Erdfelt
74490580da
Merge branch 'jetty-9' into multimap-ng
2012-08-10 11:32:42 -07:00
Joakim Erdfelt
da0e5a1ef6
[multimap-ng] step 1, make MultiMap participate as a full fledged member of the Collections framework
2012-08-10 10:25:10 -07:00
Simone Bordet
c3dfd0c653
Jetty9 - Set stopTimeout to zero by default, and setting defaults for threaded component that need a non-zero stop timeout to stop properly.
2012-08-10 19:02:16 +02:00
Simone Bordet
136f7924fd
Jetty9 - Refactored usage of components that were using custom stop timeout to use the get/setStopTimeout() methods inherited from AbstractLifeCycle.
2012-08-10 19:02:16 +02:00
Greg Wilkins
1740b45342
jetty-9 Less reliance on booleans in SslConnection
2012-08-10 21:12:44 +10:00
Simone Bordet
6a2041ae27
Jetty9 - Better handling of cases where the SslConnection has its output shutdown.
2012-08-10 10:34:00 +02:00
Simone Bordet
2d832fa9ad
Jetty9 - Introduced Connection.close() for better stop of lifecycle components.
2012-08-10 10:32:45 +02:00
Simone Bordet
cf5801f437
Jetty9 - Added logging.
2012-08-10 10:31:35 +02:00
Greg Wilkins
afe489e986
jetty-9 potential SSL fix
2012-08-10 15:21:52 +10:00
Greg Wilkins
54ea5a7de2
jetty-9 better dispatching of events to SSL
2012-08-10 14:39:51 +10:00
Greg Wilkins
97ff08b3be
jetty-9 write on ssl connection test harness
2012-08-10 13:31:11 +10:00
Greg Wilkins
16b404754e
jetty-9 improved logging
2012-08-10 13:31:11 +10:00
Simone Bordet
523f1a8295
Jetty9 - Made close(), isOpen() and onOpen() use the _open AtomicBoolean for their logic, to avoid race conditions.
2012-08-08 14:58:04 +02:00
Simone Bordet
fe99631069
Jetty9 - Avoid to throw just after having written the SSL close message.
2012-08-08 11:28:53 +02:00
Simone Bordet
2816187e0d
Jetty9 - More logging.
2012-08-08 11:28:53 +02:00
Simone Bordet
cac1c933c3
Jetty9 - Prevented NPE in case the connection cannot be created.
2012-08-08 11:28:53 +02:00
Simone Bordet
d40170001a
Jetty9 - Removed call to onOpen() for the nested connection, it's not needed, and always calling completeWrite() from onFillable() in case there is application data left to be written.
...
Improved logging.
2012-08-08 11:28:53 +02:00
Greg Wilkins
32c5f6c093
jetty-9 reduced LazyList usage
2012-08-08 11:58:50 +10:00
Thomas Becker
d4d41fb877
jetty9 - fix WriteFlusherTest.testConcurrentAccessToIncompleteWriteAndOnFail()
2012-08-03 19:56:00 +02:00
Thomas Becker
5743483f9c
jetty9 - WriteFlusher.PendingState._buffers is final now
2012-08-03 19:27:35 +02:00
Thomas Becker
90112965b6
jetty9 - SelectChannelEndPoint.toString() fix
2012-08-03 19:10:21 +02:00
Simone Bordet
433839bd47
Jetty9 - Introduced ConnectionFactory for SelectChannelConnector.
...
This change abstracts out the connection creation from the connector itself,
so there can be only one connector managing all protocols, depending on
the configuration of the connection factories.
2012-08-03 19:10:21 +02:00
Thomas Becker
9f2d1586ca
jetty9 - WriteFlusher minor changes. Some ConcurrentTests for WriteFlusher added. Cleanup. Javadoc.
2012-08-03 19:10:18 +02:00
Greg Wilkins
2d7b6c9c06
jetty-9 some post simone review changes to WriteFlusher
2012-08-03 19:41:56 +10:00
Greg Wilkins
99a4b5955f
jetty-9 more common code in AbstractEndPoint
2012-08-03 15:51:21 +10:00
Greg Wilkins
40d4e1070f
jetty-9 renamed ReadInterest to fillInterest
2012-08-03 12:49:37 +10:00
Greg Wilkins
7df281bb16
jetty-9 renamed ReadInterest to fillInterest
2012-08-03 12:47:33 +10:00
Greg Wilkins
29833f000b
Merge branch 'jetty-9' into jetty-9-oneconnector
...
Conflicts:
jetty-io/src/main/java/org/eclipse/jetty/io/AsyncByteArrayEndPoint.java
jetty-io/src/main/java/org/eclipse/jetty/io/ChannelEndPoint.java
jetty-io/src/main/java/org/eclipse/jetty/io/WriteFlusher.java
jetty-io/src/main/java/org/eclipse/jetty/io/ssl/SslConnection.java
jetty-io/src/test/java/org/eclipse/jetty/io/WriteFlusherTest.java
2012-08-03 12:39:21 +10:00
Thomas Becker
137ccca7c5
jetty9 - Make WriteFlusher.java threadsafe
2012-08-03 01:06:41 +02:00
Thomas Becker
a4018d3484
merge with jetty-9
2012-08-02 15:00:43 +02:00
Thomas Becker
4e94601619
jetty-9: Make WriteFlusher threadsafe.
2012-08-02 14:38:54 +02:00
Greg Wilkins
0865a9cfb0
jetty-9 removed more AsyncConnection names
2012-08-02 18:10:29 +10:00
Greg Wilkins
b52930be14
jetty-9 merged Async and non-Async classes for EndPoint and Connection
2012-08-02 16:08:49 +10:00
Greg Wilkins
96b5c05674
jetty-9 one connector passing most tests
2012-08-02 11:51:54 +10:00
Greg Wilkins
2a470631bf
Merge branch 'jetty-9' into jetty-9-oneconnector
...
Conflicts:
jetty-server/src/main/java/org/eclipse/jetty/server/ssl/SslSelectChannelConnector.java
2012-08-02 08:11:12 +10:00
Greg Wilkins
b2a8fc02dc
jetty-9 renaming and javadoc to improve the understandability of SslConnection
2012-08-01 15:53:03 +10:00
Simone Bordet
9a34c08b8e
Jetty9 - Removed unused fields.
2012-07-31 16:23:43 +02:00
Thomas Becker
a480e2c94d
Merge branch 'jetty-9' of ssh://git.eclipse.org/gitroot/jetty/org.eclipse.jetty.project into writeFlusher_refactoring
2012-07-31 13:55:13 +02:00
Thomas Becker
377065fae7
interims changes
2012-07-31 13:51:19 +02:00
Greg Wilkins
50ac775bf5
jetty-9 added WriteFlusherTest
2012-07-31 19:07:25 +10:00
Greg Wilkins
acdc1c1abd
jetty-9 explain the sslConnection flush contract
2012-07-31 18:12:40 +10:00
Greg Wilkins
01529ba128
jetty-9 ignore all selector exceptions if not running, since closed selector exception is not an IOException
2012-07-31 14:55:06 +10:00
Greg Wilkins
e772e26b5b
jetty-9 synchronized writeflusher until correct non blocking impl
2012-07-31 14:54:22 +10:00
Simone Bordet
35b61feae2
Jetty9 - Test for better handling for I/O interests.
2012-07-30 23:02:25 +02:00
Simone Bordet
0c1ca16e86
Jetty9 - Better handling for I/O interests.
...
When the SelectChannelEndPoint is selected, it should only remove interests
for what has been selected, so that other interests are kept unchanged.
2012-07-30 19:43:13 +02:00
Simone Bordet
aa24693870
Jetty9 - Cleaned up and made test more reliable.
2012-07-30 19:39:20 +02:00
Simone Bordet
929defa465
Jetty9 - Removed assert with side effect.
2012-07-30 19:39:20 +02:00
Simone Bordet
c229915444
Jetty9 - Fixed idle timeout expiration, that was not firing if the idle timeout left was zero.
...
Added logging for idle timeout methods.
2012-07-30 12:44:48 +02:00
Simone Bordet
fa721bf510
Jetty9 - Making sure that we call EndPoint.close(), and therefore triggering the EndPoint
...
lifecycle callbacks, for exception cases and when the correspondent key is invalid.
2012-07-29 18:03:09 +02:00
Simone Bordet
0af40c4db2
Jetty9 - Added lifecycle callbacks for onOpen() for the application AsyncConnection linked to the SslConnection.
2012-07-29 14:57:29 +02:00
Greg Wilkins
039499d610
Merge branch 'jetty-9' into jetty-9-oneconnector
2012-07-28 08:26:00 +10:00
Simone Bordet
12a3333632
Jetty9 - Better implementation for onOpen().
...
Removed the set of the clientMode, since this needs to be set by the creator of the SslConnection,
depending whether is a client or a server.
Also, always calling super.onOpen() to call fillInterested(), even on client side, because it will need
to read the server SSL handshake.
Finally, removed the delegated call to onOpen() to the application connection. This is already done
by the creator of the application connection.
2012-07-27 23:31:34 +02:00
Simone Bordet
592cb3432e
Jetty9 - Introduced NextProtoNego AsyncConnections to handle SSL with NPN.
2012-07-27 21:54:09 +02:00
Simone Bordet
b79bfcac74
Jetty9 - Improved connection callbacks.
2012-07-27 15:14:04 +02:00
Simone Bordet
71cf945183
Improved logging.
2012-07-27 15:14:04 +02:00
Simone Bordet
b755762ea6
Jetty9 - Resetting OP_CONNECT interest after successful connect to avoid spin looping the selector thread.
2012-07-27 15:14:04 +02:00
Greg Wilkins
7bee81fa82
jetty-9 factoring out HTTP dependencies from connectors
2012-07-27 20:37:42 +10:00
Simone Bordet
822abe514e
Jetty9 - Improved idle timeout handling.
...
Idle timeouts are not enforced anymore by polling the AsyncEndPoints from the SelectorManager,
but instead the AsyncEndPoints now take a SchedulerExecutorService as parameter and perform
their own enforcing of the idle timeout.
Also removed a few Timer usages (replaced by SchedulerExecutorService) and fixed XML files
referencing old APIs.
2012-07-24 10:38:28 +02:00
Jesse McConnell
100b5fb6cb
move @Name to annotation package and change @Managed to drop PARAMETER
2012-07-23 09:44:41 -05:00
Simone Bordet
d2a0cb5c50
Jetty9 - Fixed compilation problems.
2012-07-23 15:38:27 +02:00
Simone Bordet
6b4583b461
Jetty9 - Introduced a onReadTimeout() callback and refactored into AbstractAsyncConnection.onOpen() calls to onFillInterested() that were previously done by all subclasses.
2012-07-23 14:27:33 +02:00
Greg Wilkins
5b57573596
jetty-9 scheduledexecutorservice
2012-07-23 19:20:29 +10:00
Greg Wilkins
ab298e511e
jetty-9 unit test cleanups
2012-07-23 17:11:59 +10:00
Greg Wilkins
8101b67ce8
jetty-9 lots of code cleanups from findbugs, warnings and TODOs
2012-07-23 14:08:35 +10:00
Simone Bordet
b08bca2abb
Jetty9 - Test fixing.
2012-07-20 16:13:27 +02:00
Simone Bordet
851239ee56
Jetty9 - More refactorings and renamings.
2012-07-20 15:23:39 +02:00
Simone Bordet
6aba6d1e8c
Jetty9 - Refactored SelectorManager and SelectChannelEndPoint.
...
Simplified Selectable interface, and improved idle timeout checking.
2012-07-20 13:04:28 +02:00