99 Commits

Author SHA1 Message Date
Simone Bordet
a07a7525ff Fixed ClassCastExceptions. 2012-02-28 09:35:09 +01:00
Simone Bordet
268e8bdbd7 Better closes for SSL. 2012-02-28 09:34:49 +01:00
Simone Bordet
ced68ab29b Implemented execution of HTTP over SPDY requests in their own threads.
The model was such one thread performed the parsing of the SYN requests
and invoked the application.
But if a SYN request was blocked in a servlet, then other SYN requests could
not be parsed because the thread was blocked in the servlet.
With these fixes, now a single thread parses SYN requests, but the application
is invoked in another thread, freeing the first thread that can now parse more
SYN requests.
2012-02-27 21:42:29 +01:00
Simone Bordet
e47b9f1630 Consolidated flush() calls into StandardSession.control() to avoid code duplications. 2012-02-27 21:30:43 +01:00
Simone Bordet
79f739799f Better logging. 2012-02-27 21:26:48 +01:00
Simone Bordet
2b5be71ad2 Javadocs. 2012-02-27 21:26:27 +01:00
Simone Bordet
10d5d4acac Sending GOAWAY when stopping SPDYServerConnector and SPDYClient.Factory. 2012-02-26 00:54:14 +01:00
Simone Bordet
6ed95152dd Removed TODOs. 2012-02-25 22:58:43 +01:00
Simone Bordet
2ce29b740d Implemented synthetic data frames to avoid copying data bytes in case of split frames. 2012-02-25 15:07:03 +01:00
Simone Bordet
d43ac786a8 Removed TODOs about data compression, since it's being dropped from the spec. 2012-02-25 14:23:15 +01:00
Simone Bordet
33fdb32bff Implemented usage of SPDY v3 compression dictionary. 2012-02-24 19:14:58 +01:00
Simone Bordet
34509312f0 Reworked API for settings, to make it simpler and more usable. 2012-02-24 16:52:42 +01:00
Simone Bordet
226b180bfd Renamed inner class: Mapper --> Codes. 2012-02-24 16:52:06 +01:00
Simone Bordet
04f74816b5 Fixed conformance with SPDY v2. 2012-02-24 15:30:47 +01:00
Simone Bordet
3f5a35024e Improved sample webapp, now to be run using mvn jetty:run-forked
and working with out-of-the-box Chromium.
2012-02-24 14:18:50 +01:00
Simone Bordet
2640e80101 Introduced default AsyncConnectionFactory in SPDYServerConnector, to fallback
to a default protocol in case of A) non-SSL connection, and B) no NPN.
2012-02-24 14:17:47 +01:00
Simone Bordet
94d5bccbd3 Removed temporary test. 2012-02-24 00:50:29 +01:00
Simone Bordet
cb1be263c4 Updated to correct version of NPN artifact.
Implemented plain HTTP AsyncConnectionFactory and tested protocol negotiation.
2012-02-24 00:48:26 +01:00
Simone Bordet
7be63d7f76 Simplified Handler by removing the context parameter from failed(). 2012-02-24 00:46:32 +01:00
Simone Bordet
e1e9aa1ad5 Simplified Handler by removing the context parameter from failed(). 2012-02-24 00:45:40 +01:00
Simone Bordet
f4f04f8fcf Added putters and removers for AsyncConnectionFactory. 2012-02-23 23:27:23 +01:00
Simone Bordet
8f3f34633d Simplified Handler by removing the context parameter from failed(). 2012-02-23 23:24:56 +01:00
Simone Bordet
4bcd7548d9 Improvements to SettingsInfo. 2012-02-23 17:58:35 +01:00
Simone Bordet
726fda5593 Javadocs. 2012-02-22 23:47:45 +01:00
Simone Bordet
111ae7fa1a Removed assumption for test run: now NPN does not need an agent anymore. 2012-02-22 21:12:43 +01:00
Simone Bordet
81b4b1cbcd Updated to Jetty 7.6.1. 2012-02-22 21:11:52 +01:00
Simone Bordet
70f6d555bf Consolidated usage of async handlers into one class only, instead of three. 2012-02-22 16:02:06 +01:00
Simone Bordet
77cdee95ce Implemented atomic update of the last good stream. 2012-02-15 19:17:22 +01:00
Simone Bordet
176230c344 Updated the API to support fully asynchronous API usage. 2012-02-15 19:04:58 +01:00
Simone Bordet
433de85fda Extracted FrameListeners into their own classes for clarity. 2012-02-15 13:00:19 +01:00
Simone Bordet
f4d0d4fa96 Reduced logging level for tests. 2012-02-15 11:50:41 +01:00
Simone Bordet
08b32f8731 Javadocs and API simplification. 2012-02-15 11:49:26 +01:00
Simone Bordet
5fef14e947 Reviewed API and removed the need to specify a version parameter for most Session methods.
This accomplishes two goals: the first is to simplify the API, and the second is that the headers
compression dictionary is likely to change in SPDY v3, and therefore it makes impossible to speak
different SPDY versions on the same session.
2012-02-15 11:08:14 +01:00
Simone Bordet
a994ac0aa0 Javadocs. 2012-02-15 10:33:21 +01:00
Simone Bordet
e9f644474f Added .gitignore file. 2012-02-15 00:24:19 +01:00
Simone Bordet
2ed333d3a5 Added some content in the web application, to test that SPDY works. 2012-02-15 00:21:42 +01:00
Simone Bordet
c6f83ec1b7 Added test for the HTTP layer in case of content bypass. 2012-02-14 23:32:30 +01:00
Simone Bordet
f33a0deee2 Fixed handling of "url" header (now ignored since Chromium does not send it as absolute URL),
and added handling of "host" header (sent by Chromium).

Also fixed handling of "bypass" content, that is content that is directly sent to clients without
being buffered (such as images, CSS, and others).
2012-02-14 23:03:10 +01:00
Simone Bordet
c8dcaacdff Implemented the HTTP layering over SPDY, server-side. 2012-02-14 17:49:53 +01:00
Simone Bordet
c191304433 Refactored class name. 2012-02-14 17:41:39 +01:00
Simone Bordet
ff7414c893 Added utility method to return content as a string. 2012-02-14 17:36:40 +01:00
Simone Bordet
4af0a3e937 Fixed data frame parser in case of frames with length == 0. 2012-02-14 12:53:35 +01:00
Simone Bordet
dcdf54f557 GOAWAY messages were always generated in version 3 format. 2012-02-14 12:53:01 +01:00
Simone Bordet
9abc92145d Improved toString() using String.format() and improved logging and comments. 2012-02-14 12:52:19 +01:00
Simone Bordet
1c18cba38a Fixed more bugs in flow control. 2012-02-14 10:23:18 +01:00
Simone Bordet
3660537151 Fixed a few bugs in flow control. 2012-02-13 21:44:46 +01:00
Simone Bordet
df47105da1 More tests for the generation of responses. 2012-02-13 14:29:05 +01:00
Simone Bordet
4c691c628b Added test logging. 2012-02-13 14:28:36 +01:00
Simone Bordet
623ebc3a21 Cleanups and added webapp module for testing with jetty:run. 2012-02-10 17:43:07 +01:00
Simone Bordet
773f3202f8 Refactored project into modules, splitting the Jetty binding and the HTTP layer. 2012-02-10 15:38:22 +01:00