Commit Graph

74 Commits

Author SHA1 Message Date
Frédéric Brégier
cc0d7d8be5 typo fix! sorry 2012-05-02 12:35:36 +03:00
Frédéric Brégier
d475a8cc64 Very small fix (readUnsigned while in optimized version it was signed but should be unsigned) 2012-05-02 11:40:28 +03:00
Frédéric Brégier
502e469c45 Add Exception to the exception class name 2012-05-01 00:18:42 +03:00
Frédéric Brégier
1bf17c7c87 Add Exception to name of the Exception ;-) 2012-05-01 00:14:42 +03:00
Frédéric Brégier
675bccc9ea Update codec-http/src/main/java/io/netty/handler/codec/http/HttpPostRequestDecoder.java 2012-04-30 13:06:53 +03:00
Frédéric Brégier
a524396475 Optimize Buffer access while decoding by going through backend array when possible (divide by almost 2 the time spent in decoding) 2012-04-30 13:02:46 +03:00
Frédéric Brégier
c83323f748 Add the SeekAheadOptimize class to enable faster seek of bytes values in HttpPostRequestDecoder 2012-04-30 12:38:07 +03:00
Frédéric Brégier
d9085e9e37 Fix in addContent when switching from MemoryAttribute if it is done when last buffer added, in order to not close immediately the underlying file before adding the last buffer. 2012-04-30 12:33:10 +03:00
Frédéric Brégier
a410cb243b Fix in addContent when switching from MemoryAttribute if it is done when last buffer added, in order to not close immediately the underlying file before adding the last buffer. 2012-04-30 12:32:24 +03:00
Frédéric Brégier
877383de3a Move force() after multiple writes, not at every steps 2012-04-30 12:30:08 +03:00
Frédéric Brégier
65876fa7fb Close channel when needed and optimize force() position after multiple writes not at each step 2012-04-30 12:29:05 +03:00
norman
dcd2a10f95 Remove @deprecated constructor. See #283 2012-04-27 07:39:26 +02:00
vibul
40e9b96764 We need to keep the old constructor to not break the API. 2012-04-27 10:43:34 +10:00
vibul
6009a413b9 Issue #283 - Support max frame length for web socket to limit chance of DOS attack 2012-04-26 10:09:12 +10:00
Norman Maurer
77d2f9c4ef Upgrade and Connection header must be matched in a case-insensitive manner in WebSocket 08 and 13. See #278 2012-04-22 12:56:37 +02:00
Norman Maurer
54559a9595 Make it configurable if the HttpClientCodec should throw an exception on close when the response and request count does not match. Default is false. See #266 2012-04-17 20:54:58 +02:00
Norman Maurer
aa6c16b136 Make sure PrematureChannelClosureException is not thrown incorrectly sometimes. See #266 2012-04-17 09:25:53 +02:00
Norman Maurer
cd92478bfc Use Sec-WebSocket-Origin in WebSocketClientHandshaker08 as replacement for Origin. See #264 2012-04-16 15:30:43 +02:00
norman
00e59da7ba Add port to Origin HTTP Header if the port is non default (80/443). See
#262
2012-04-16 13:26:35 +02:00
norman
0a84ce6f00 Merge branch 'master' of ssh://github.com/netty/netty 2012-04-16 13:12:36 +02:00
norman
987e152f08 Add port to Origin HTTP Header if the port is non default (80/443). See
#262
2012-04-16 13:12:12 +02:00
Norman Maurer
978168e8c6 Fix typo 2012-04-16 11:45:59 +03:00
norman
c44f365ee7 Add some javadocs notes that explain the behavior of CookieEncoder.encode(). See #94 2012-04-16 10:43:21 +02:00
Norman Maurer
e02225a80f Add also tests for HttpClientCodec that tests handling chunked responses. See #256 amd #259 2012-04-15 20:58:40 +02:00
Norman Maurer
bc141f695b Add test for HttpClientCodec that tests handling of missing responses. See #256 amd #259 2012-04-15 15:47:05 +02:00
norman
d363f73fd8 Only increment the counter if the encode did not fail. See #256 2012-04-12 10:55:18 +02:00
norman
5ed04c3ada Correctly handle chunked requests/responses. See #256 2012-04-12 10:34:16 +02:00
norman
b9c60bd518 Throw a PrematureChannelClosureException if the channel was closed before all responses were received for the sent requests. See #256 2012-04-12 10:22:10 +02:00
vibul
dd14b8d9e8 Issue #250. Implement web socket close frame status code and reason text. 2012-04-09 14:33:45 +10:00
Trustin Lee
fd0b0a4e2b Code cleanup 2012-03-30 12:48:28 +09:00
Norman Maurer
60d9364604 First round of remove the boss-thread. See #240 2012-03-28 20:19:39 +02:00
Norman Maurer
0082a15899 Fix javadocs warnings 2012-03-26 19:50:39 +03:00
Norman Maurer
2766133a4d Fix javadocs warnings 2012-03-26 19:50:01 +03:00
Norman Maurer
32ff810b64 Correctly handle Hixie 76 websocket handshake response. See #222 2012-03-21 19:00:32 +01:00
norman
e8ddc3cf00 remove unnecessary check. See #222 2012-03-20 15:44:59 +01:00
norman
8d9f78c84d Correctly handle responses with return code of 1xx. See #222 2012-03-20 15:40:34 +01:00
Norman Maurer
cb931bfb92 Correctly handle HTTP Patch. See #227 2012-03-11 11:54:54 +01:00
Trustin Lee
279d859c7e Issue #220 - Treat content as non-empty on 101 Web Socket upgrade response 2012-03-09 11:07:26 +09:00
norman
92a907c4d7 Merge branch 'master' of github.com:netty/netty 2012-03-08 08:09:17 +01:00
norman
09b41b28ea Correctly handle earlier versions of websockets. See #222 2012-03-08 08:08:36 +01:00
Norman Maurer
30ef214677 Make sure ...Decompressor.end() is called even on Exception. See #224 2012-03-07 21:14:48 +01:00
Trustin Lee
70e0eba894 Replace SpdyHeaderBlockJZlibDecompressor with java.util.zip.Inflater-based one
It should be fine because the Inflater-based one uses only JDK 1.5 API
2012-03-07 20:09:05 +09:00
Trustin Lee
2109fdedb6 Fix cherry-pick where git was not very smart 2012-03-07 20:07:12 +09:00
Jeff Pinner
304eee1db4 SPDY: use java.util.zip for header block decompressor 2012-03-07 20:05:25 +09:00
Trustin Lee
cf02ad2a1e Add DetectionUtil which replaces UnsafeDetectUtil / Improve SpdyHeaderBlockJZlibDecompressor 2012-03-07 19:54:44 +09:00
Trustin Lee
efe27dbce5 Rename SPDY header block (de)compressor classes 2012-03-02 10:43:04 -08:00
norman
5291560283 Remove left-over of refactoring. See #211 2012-03-02 08:03:20 +01:00
norman
8eec693883 Remove twitter license headers. See #202 2012-03-02 07:46:56 +01:00
norman
985fc448dc Remove unused imports 2012-03-02 07:38:05 +01:00
norman
469cb8b80b Remove Twitter license. See #202 2012-03-02 07:37:43 +01:00