Commit Graph

2284 Commits

Author SHA1 Message Date
norman
79f3efd89f Remove unused import 2012-04-24 13:03:58 +02:00
norman
c9da4931c7 Add the factory to create the buffer 2012-04-24 13:01:49 +02:00
norman
bfeb9ffd9a No need for a dynamicbuffer anymore 2012-04-23 13:17:30 +02:00
norman
d126059fb4 Correctly calculate the writable bytes and use a heap buffer to hold the bytes that are left 2012-04-23 11:41:27 +02:00
norman
33715ede50 Make the cumulation usage more efficient in terms of memroy usage 2012-04-23 10:25:05 +02:00
Norman Maurer
172f24cfa8 Upgrade and Connection header must be matched in a case-insensitive manner in WebSocket 08 and 13. See #278 2012-04-22 12:53:00 +02:00
Norman Maurer
0b26a5a2f0 Fix possible NPE. See #274 2012-04-21 16:13:27 +02:00
Norman Maurer
c134a522c3 Allow to specify the local address when connect. See #276 2012-04-21 15:51:51 +02:00
Norman Maurer
f83ba2feb9 Make sure we always cleanup once ReplayingDecoder handles a message. See #259 2012-04-20 20:10:50 +02:00
Norman Maurer
670c4fa42f Enable gathering writes by default. See #269 2012-04-19 17:52:35 +02:00
Norman Maurer
510692d7e7 Add benchmark for gathering writes. See #269 2012-04-19 17:45:41 +02:00
Norman Maurer
5dbc207b5b Correctly handle the stripping of the zoneId / scopeId in all cases. See #267 2012-04-19 16:40:02 +02:00
Norman Maurer
1779032218 Use LinkedTransferQueue that ships with java7 when running on java >= 7. See #273 2012-04-19 13:24:46 +02:00
Norman Maurer
c5ab2f5dad Use gathering writes in CompositeChannelBuffer if jdk >= 7. See #267 2012-04-19 13:12:28 +02:00
Norman Maurer
1a53f9e0bd Allow to disable the use of sun.misc.Unsafe via a System property. See #272 2012-04-19 11:58:33 +02:00
Norman Maurer
2cea0dee73 Only log if logging level is enabled 2012-04-19 11:39:50 +02:00
Norman Maurer
cbb8654193 Use gathering writes if java version >= 7 and the ChannelBuffer is an instanceof CompositeChannelBuffer. See #267 2012-04-18 21:49:28 +02:00
Norman Maurer
3d762a7594 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:15:20 +02:00
Norman Maurer
3002a684df Fallback to LegacyLinkedTransferQueue if using LinkedTransferQueue fails. See #268 2012-04-17 14:04:16 +02:00
Norman Maurer
5a2793e317 Add workaround for connection problems with IPv6 link-local addresses and jdk < 7. See #267 2012-04-17 13:59:35 +02:00
Norman Maurer
3558eb7042 Add workaround for connection problems with IPv6 link-local addresses and jdk < 7. See #267 2012-04-17 09:49:35 +02:00
Norman Maurer
b1c2771801 Make sure PrematureChannelClosureException is not thrown incorrectly sometimes. See #266 2012-04-17 09:28:15 +02:00
Norman Maurer
ff5787266d Use Sec-WebSocket-Origin in WebSocketClientHandshaker08 as replacement for Origin. See #264 2012-04-16 15:29:27 +02:00
norman
951c275869 Add port to Origin HTTP Header if the port is non default (80/443). See
#262
2012-04-16 13:23:58 +02:00
norman
347772a1e9 Add port to Origin HTTP Header if the port is non default (80/443).
See #262
2012-04-16 13:15:04 +02:00
Norman Maurer
864167270d Add some javadocs notes that explain the behavior of CookieEncoder.encode(). See #94 2012-04-16 11:45:08 +03:00
norman
8bf84a8737 Throw IllegalStateException if DynamicChannelBuffer exceed the maximum
ChannelBuffer size of 2gb. See #258
2012-04-16 09:52:34 +02:00
Norman Maurer
fdc27db45d Add also tests for HttpClientCodec that tests handling chunked responses. See #256 amd #259 2012-04-15 20:54:57 +02:00
Norman Maurer
ad7c25866e Add test for HttpClientCodec that tests handling of missing responses. See #256 amd #259 2012-04-15 15:39:35 +02:00
Norman Maurer
d1ec95a320 Add test for HttpClientCodec that tests handling of missing responses. See #256 amd #259 2012-04-15 15:37:39 +02:00
norman
5696742f73 Throw a PrematureChannelClosureException if the channel was closed before all responses were received for the sent requests. See #256 2012-04-12 14:29:41 +02:00
norman
5240772424 Fix regression which I introduced this morning 2012-04-12 14:27:34 +02:00
norman
4c449e902f Accept all ready connections after select the keys. See #257 2012-04-12 09:27:34 +02:00
Trustin Lee
2c2d64a75e Merge branch '3' of github.com:netty/netty into 3 2012-04-12 14:15:02 +09:00
Trustin Lee
1d74c13fe7 Remove Redis client codec (will continue work on master) 2012-04-12 14:13:21 +09:00
norman
272b6b01bb Fix regression in Zlib which was introduced while refactoring the code. See #255 2012-04-11 10:23:52 +02:00
norman
4f3685b05a Make it compatible with java5. See #250 2012-04-10 14:17:22 +02:00
Norman Maurer
ef530698c5 Take care of releasing the local channel when releaseExternalResources() is called. See #235 2012-04-09 20:06:20 +02:00
Norman Maurer
403fdb2035 Add test case to show that issue #235 is due some incorrect usage 2012-04-09 16:30:36 +02:00
vibul
ac9d7ebe27 Issue #250. Implement web socket close frame status code and reason text. 2012-04-09 14:33:58 +10:00
Norman Maurer
16c3d4bc3c Make sure Future get notified before event is fired. See #254 2012-04-07 22:01:36 +02:00
Norman Maurer
ef6056f5f9 Let the test pass in osx also 2012-04-04 19:05:57 +02:00
norman
33f9d55bc4 Make sure Channel connected event is not fired on connect failure. See #249 2012-04-04 07:43:52 +02:00
norman
6995701f20 Fix UDP nio impl and add some tests for it 2012-04-03 07:44:28 +02:00
Norman Maurer
e73d9a60e7 Remove unused imports 2012-04-02 19:50:55 +02:00
Norman Maurer
f1f92c0290 Fix broken UDP support. This got broken in 3.4.0.Alpha1 2012-04-02 19:50:31 +02:00
norman
0334267b51 Fix UDP Multicast writes #237 2012-04-02 14:38:07 +02:00
Trustin Lee
2c3fef467a Fixed a regression while cleaning up Redis codec 2012-03-30 22:42:20 +09:00
Trustin Lee
3e1a055f36 Overall Redis codec cleanup (more to come)
- Prefer ChannelBuffer over byte[]
- Hide the methods that users are not usually interested in
- Rename RedisEncoder/Decoder to RedisCommandEncoder/ReplyDecoder
- Add getter methods to Replies
- Rename getX() to X() because I like it for read-only properties
2012-03-30 22:29:04 +09:00
Trustin Lee
c98ab997c5 Code cleanup / Hide internal constants from a user 2012-03-30 17:02:29 +09:00
Trustin Lee
6cdd9ac711 Code cleanup 2012-03-30 12:22:56 +09:00
Trustin Lee
9788ea7291 Fix compilation error at source level 1.5 2012-03-30 12:03:10 +09:00
Trustin Lee
3db4053f77 Merge pull request #242 from spullara/3
Adds the ability to send many commands in a single netty call
2012-03-29 05:04:44 -07:00
vibul
a051163427 Unless the Connection: keep-alive header is present in the HTTP response, apache benchmark (ab) hangs on keep alive connections.
Also, added http caching header code from master to HttpStaticFileServerHandler
2012-03-29 16:29:27 +11:00
Sam Pullara
b75933b835 remove pooling 2012-03-28 16:54:54 -07:00
Sam Pullara
d0dd93974a clean up the style 2012-03-28 13:24:28 -07:00
Sam Pullara
5daf3b10a6 add the ability to send an iterable of commands at a time that will be on the wire together 2012-03-28 13:18:35 -07:00
norman
80490f5170 Add missing no-arg constructor 2012-03-27 09:39:17 +02:00
Norman Maurer
784bf791c2 Add a no-args constructor for simple use cases 2012-03-26 20:49:36 +02:00
Norman Maurer
5e01ab7f4e Fix javadoc warnings 2012-03-26 18:45:31 +02:00
Trustin Lee
04fe8bf84c Fix #239: IdleStateHandler starts two timers
1) ReadTimeoutHandler is also affected by this bug - fixed
2) Reverted IdleStateHandler.beforeAdd() and channelConnected() -
without isAttached() check, timeout can be inaccurate if beforeAdd() is
called long before channelConnected().
2012-03-22 16:06:34 +09:00
Trustin Lee
bab2ebc32d Fix #239: IdleStateHandler starts two timers
1) Do not rely on ChannelPipeline.isAttached() to ensure initialize() is
called once.
2) Fix a race condition where initialize() can schedule timeouts after
destroy() is called.
2012-03-22 15:48:08 +09:00
Norman Maurer
5ecadf930e Correctly handle Hixie 76 websocket handshake response. See #222 2012-03-21 19:03:09 +01:00
norman
8532112224 Correctly handle responses with return code of 1xx. See #222 2012-03-20 15:43:52 +01:00
norman
cc41970d2f Make sure AbstractNioWorker.setInterestOps(..) will notify the future
and the handlers in all cases. See #238
2012-03-20 15:15:21 +01:00
norman
32e4f1b030 Fix visibility 2012-03-20 11:40:07 +01:00
norman
4709f7fa48 Add empty line 2012-03-20 11:37:09 +01:00
norman
75ce548eda Add missing changes from the master branch 2012-03-20 11:32:18 +01:00
norman
16e373cabd Support of sharing a WorkerPool between Factories. See #225 2012-03-20 10:28:23 +01:00
norman
d1f2226799 Fix UDP Multicast writes. See #237 2012-03-20 09:57:19 +01:00
Norman Maurer
beac1313a5 Tasks added to OrderedMemoryAwareThreadPoolExecutor may be lost in some
cases. See #234
2012-03-15 14:27:07 +01:00
Norman Maurer
192fbe0572 Merge pull request #229 from veebs/3.2
Issue #222 part 2 for 3.x branch - Removed unnecessary websocket code and retested with Autobahn v0.4.10.
2012-03-12 05:28:03 -07:00
norman
643f39b2c9 Fix checkstyle 2012-03-12 12:02:44 +01:00
norman
ba118f214c Make sure ErrorReply and StatusReply can be written more then one time 2012-03-12 08:27:10 +01:00
norman
a5a41a51a2 Some more cleanup of the redis code 2012-03-12 08:15:15 +01:00
norman
4cb3bf2c4a Add @Override annotations 2012-03-12 07:32:23 +01:00
norman
05883f5523 Make pooling configurable 2012-03-12 07:22:48 +01:00
norman
26513bb4f8 Reduce visibility of method 2012-03-12 07:11:48 +01:00
norman
b98ce36608 Move RedisClient to example package and license header 2012-03-12 07:08:00 +01:00
vibul
cc888a5b3e Retested Websockets with Autobahn v0.4.10. 2012-03-12 11:30:18 +11:00
vibul
c0b86cd6c0 Remove WebSocketHttpResponseDecoder hack. 2012-03-12 11:14:17 +11:00
Norman Maurer
a8add46027 cleanup 2012-03-11 20:58:56 +01:00
Norman Maurer
eabad22663 Fix up tests 2012-03-11 20:55:18 +01:00
Norman Maurer
7040e71131 Change method to be private as otherwise we would need to mark "reply"
volatile to make sure a user will not trigger a race if he call the
method from the outside
2012-03-11 20:55:00 +01:00
Norman Maurer
2b32c3fb59 Eliminate some unnecessary byte copy / convertion 2012-03-11 20:53:55 +01:00
Sam Pullara
f7a1ec61f2 Fixed several bugs in the replay state implementation 2012-03-10 22:12:17 -08:00
Sam Pullara
a0a59d916d passes the JDK5 and license stuff wow 2012-03-10 12:04:05 -08:00
Sam Pullara
b3cdeff919 suggestions from both repositories applied 2012-03-10 10:04:26 -08:00
Sam Pullara
0776911ed1 Redis client codec 2012-03-10 10:04:26 -08:00
Trustin Lee
92c18cc13a Issue #220 - Treat content as non-empty on 101 Web Socket upgrade response 2012-03-09 11:08:13 +09:00
norman
182bf9c5c7 Correctly handle earlier versions of websockets. See #222 2012-03-08 08:14:03 +01:00
Jeff Pinner
ff3324fc7c SPDY: ensure end is called on inflater 2012-03-07 11:58:33 -08:00
Trustin Lee
4e6bf332a6 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:00:50 +09:00
Jeff Pinner
0f680bc4dc SPDY: use java.util.zip for header block decompressor 2012-03-07 19:56:19 +09:00
Trustin Lee
d99de85e15 Add DetectionUtil which replaces UnsafeDetectUtil / Improve SpdyHeaderBlockJZlibDecompressor 2012-03-07 19:45:56 +09:00
Norman Maurer
c2b830a188 Make sure we don't try to use Channel.setReadable(true) if it was not
read-suspend by the threadpool itself. See #215
2012-03-04 19:30:28 +01:00
Norman Maurer
27bd3e6d82 Make it more clear in the javadocs that you should use *Later methods to
send upstream events from a ChannelDownstreamHandler
2012-03-03 19:19:13 +01:00
Trustin Lee
2c9aab9222 Rename SPDY header block (de)compressor classes 2012-03-02 10:43:46 -08:00
norman
89495f149e Add missing file for checkstyle plugin fix 2012-03-02 13:31:02 +01:00
norman
3043cb8e09 Remove nested blocks which let checkstyle plugin fail on windows 2012-03-02 11:32:50 +01:00