Commit Graph

44 Commits

Author SHA1 Message Date
Simone Bordet 7d7e524385 Improved tests. 2012-02-29 11:00:24 +01:00
Simone Bordet ae0a155a39 Cosmetics. 2012-02-29 00:47:32 +01:00
Simone Bordet 3b8c6dfd4c Revised exception handling. 2012-02-29 00:43:17 +01:00
Simone Bordet 43623829bc Better toString(). 2012-02-29 00:33:37 +01:00
Simone Bordet ca9b6ebd2c Moved Session.flush() to ISession: applications do not get any benefit from calling flush(). 2012-02-29 00:33:22 +01:00
Simone Bordet 95ffdd8feb Fixed dispatching of data frames in another thread. 2012-02-29 00:32:33 +01:00
Simone Bordet 9575e8a7d2 Added comment on flow control policy. 2012-02-28 23:47:06 +01:00
Simone Bordet 17bb26f053 Better implementation for flow control.
Now DataInfo has an API for performing 2 distinct operations: reading and consuming.
The WINDOW_UPDATE message is sent only when the bytes are consumed and not
when the application callback returns (possibly without having neither read nor
consumed the bytes).
2012-02-28 23:41:46 +01:00
Simone Bordet b1ef0e87c9 Reviewed use of StreamException and SessionException. 2012-02-28 17:40:03 +01:00
Simone Bordet 3f1c7aa102 Rethrowing SPDYException in case of stream exception. 2012-02-28 17:09:52 +01:00
Simone Bordet 50ead5c19c Synchronized the generation and enqueuing of control frames, in order to maintain a correct compression context. 2012-02-28 17:01:30 +01:00
Simone Bordet 980d728502 Implemented asynchronous notifications of frame listener callbacks. 2012-02-28 15:32:51 +01:00
Simone Bordet 8c209c1f73 Refactored order of parameters. 2012-02-28 12:16:10 +01:00
Simone Bordet 0dbcaff911 Implemented support for async write timeouts. 2012-02-28 11:19:33 +01:00
Simone Bordet a26ae22e3f Updated API to support async write timeouts. 2012-02-28 09:57:44 +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 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 e1e9aa1ad5 Simplified Handler by removing the context parameter from failed(). 2012-02-24 00:45:40 +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 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 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 c6f83ec1b7 Added test for the HTTP layer in case of content bypass. 2012-02-14 23:32:30 +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 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