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
norman
a7b550a74a
Fixes for the checkstyle plugin as without the build breaks on windows.
2012-03-02 11:24:10 +01:00
norman
ca3409c622
Allow to handle only downstream events via the ExecutionHandler. See
...
#173
2012-03-02 09:34:17 +01:00
norman
e74c898a55
Remove twitter license headers. See #202
2012-03-02 07:45:01 +01:00
Trustin Lee
d468c0e933
Make #211 work with Java 5
...
* Use java.util.zip.Deflater only when running under Java 7
2012-03-01 15:33:39 -08:00
Jeff Pinner
a8809dbdc5
SPDY: use jdk 1.7 java.util.zip instead of jzlib
2012-03-01 14:51:47 -08:00
Trustin Lee
8871ed2228
Fix NPE in AbstractNioWorker / Uncomment setUseClientMode()
2012-03-01 14:28:17 -08:00
Trustin Lee
1df328034f
Fix #202 - Remove Twitter license
...
Twitter signed CCLA today.
2012-03-01 14:01:31 -08:00
Norman Maurer
b7cbf3729b
Release ChildExecutor after the channel was closed. See #173
2012-03-01 21:32:15 +01:00
Trustin Lee
14d5133b22
Fix #160 - Even more strict majorVersion check in SslHandler
2012-03-01 11:41:28 -08:00
Trustin Lee
ee6a6e6cec
Fix #160 - No response to write if server is using SslHandler and client is not
2012-03-01 11:33:20 -08:00
Norman Maurer
2f78b1abe0
Fix checkstyle
2012-03-01 18:12:55 +01:00
Norman Maurer
252d6c2cce
Merge back changes to support execution of Runnable in the IO Thread.
...
This also fixes the threading issue. See #140 , #187 , #209 and #210
2012-03-01 18:10:16 +01:00
Trustin Lee
8a2d8f811d
Make ReplayingDecoder.newCumulationBuffer() overridable / Make Replaying|FrameDecoder allocate at least 256 bytes by default
2012-02-29 10:02:20 -08:00
Trustin Lee
ea6ed5cb61
Optimize ReplayingDecoder even further
...
* If checkpoint is non-zero, do not copy the whole input into cumulation but copy only the part after the checkpoint
2012-02-29 09:41:35 -08:00
Trustin Lee
4df5752669
Fix #208 - SslHandler does not use ChannelBufferFactory to create a new buffer
2012-02-29 09:20:30 -08:00
Trustin Lee
3e03347fee
Remove shameful System.out.println
2012-02-28 16:46:49 -08:00
Trustin Lee
6fa3e325fc
Remove an unused import
2012-02-28 16:40:04 -08:00
Trustin Lee
1eeb2da736
Optimize FrameDecoder and ReplayingDecoder
...
* Overall code cleanup on FrameDecoder and ReplayingDecoder
* FrameDecoder discards readableBytes only when it has to
* Replaced createCumulationDynamicBuffer with newCumulationBuffer with
an additional hint
* ReplayingDecoder does not perform memory copy if possible
2012-02-28 16:30:00 -08:00
Norman Maurer
c33f8a9b91
Add empty line
2012-02-28 16:51:57 +01:00
Norman Maurer
5a97e53f68
Workaround for JDK NIO bug. See #203
2012-02-28 16:51:57 +01:00
Trustin Lee
1bc988f17c
Decreased all selector timeout from 500 ms to 10 ms
...
See #204
2012-02-27 13:02:12 -08:00
Trustin Lee
714ec984dd
Fix #204 - Increate the granularity of connect timeout in NIO
...
* Changed the Selector timeout from 500 to 10 so that the timeout is
* checked every 10 milliseconds
2012-02-27 12:59:00 -08:00
norman
a0f9afb1eb
Check if loglevel is enabled before logging
2012-02-27 07:37:59 +01:00
Norman Maurer
3b1b2f0b1d
Add OrderedDownstreamThreadPoolExecutor which can be used when using the
...
new feature of ExecutionHandler to also handle downstream events. This
is mainly useful for SEDA like stuff. See #173
2012-02-26 11:04:20 +01:00
Trustin Lee
51dec6013b
Fix build failure
2012-02-23 10:07:46 -08:00
norman
af2f751fa8
Fix compilation issue due to jdk bug in older jdk versions. See #197
2012-02-21 08:11:05 +01:00
norman
fc16ab2d64
Check if logging level is enabled before log. See #192
2012-02-17 10:58:03 +01:00
norman
0cc8153aa6
Make sure the 3.2 branch is usable with java5. This changes are based on
...
the pull request #191 with a modification to not break the API.
2012-02-16 07:59:15 +01:00
norman
c12717bfed
Correctly decode URI in QueryStringDecoder. See #189
2012-02-15 08:35:53 +01:00
Norman Maurer
26871d2d05
Fix HttpSnoopClient. See #183
2012-02-12 12:34:18 +01:00
Norman Maurer
5663db690c
Remove unused imports
2012-02-11 12:56:16 +01:00
Jeff Pinner
bbe9e55afa
SPDY Protocol HTTP Layer
2012-02-10 12:23:59 -08:00
Trustin Lee
a447fbd18a
Use getHeader() instead of getHeaders()
2012-02-07 18:13:33 +09:00
Trustin Lee
6e8e836b2e
Fix license headers
2012-02-07 17:40:16 +09:00
Norman Maurer
40f4f118cd
Don't require HttpChunkAggregator to be present in pipeline for WS. See
...
#177
2012-02-04 17:41:07 +01:00
Norman Maurer
447366168f
Remove unused imports
2012-02-04 16:05:17 +01:00
Norman Maurer
471269eabe
Remove unused imports
2012-02-04 16:03:32 +01:00
Norman Maurer
7344c7d87c
Some small code cleanup
2012-02-04 16:02:44 +01:00
Norman Maurer
88ecc388d3
Remove unused imports
2012-02-04 15:56:36 +01:00
Jeff Pinner
3f9e89c17d
Merge remote-tracking branch 'upstream/3.2' into spdy_framing_layer_3_2
2012-02-03 16:23:41 -08:00
Jeff Pinner
9fcb4643b1
SPDY Protocol Framing Layer Tests
2012-02-03 16:22:39 -08:00
Norman Maurer
188f01f317
Remove the child Executor with the right method so it will also work
...
when the channel is not the key.See #175
2012-02-03 15:47:34 +01:00
Norman Maurer
01225b0a52
HttpMessageEncoder should add Header "Transfer-Encoding: chunked" if
...
HttpMessage.isChunked(). See #171
2012-02-02 15:18:46 +01:00
Trustin Lee
0ee43f770f
Remove a unused field
2012-02-02 16:18:27 +09:00
Trustin Lee
a7d419a481
Merge pull request #172 from jpinner/http_accept_encoding_3_2
...
Fix #164 : HttpContentCompressor accepts encodings whose qvalue is 0
2012-02-01 22:53:19 -08:00
Jeff Pinner
24baa9a2ac
Fix #163 : HttpContentCompressor consumes too much memory
2012-02-01 16:00:10 -08:00
Jeff Pinner
aecce011e8
Fix #164 : HttpContentCompressor accepts encodings whose qvalue is 0
2012-01-31 14:34:21 -08:00
Norman Maurer
4116c44c77
FixedLengthFrameDecoder should used a optimizated initialSize
...
when creating the cumulative ChannelBuffer. See #170
2012-01-31 21:02:00 +01:00
Jeff Pinner
cf8a4d627d
SPDY Protocol Framing Layer
2012-01-31 12:00:21 -08:00
Norman Maurer
4d7c9b397d
Allow to @override the cumulative ChannelBuffer creation. See #169
2012-01-31 20:57:23 +01:00
Norman Maurer
edc34c319d
Mark StaticChannelPipeline @Deprecated. See #168
2012-01-31 13:03:53 +01:00
Norman Maurer
3b0f45c93c
Fix possible NPE which will be thrown if the Buffer was set to null and
...
after that Exception was thrown. See #166
2012-01-31 11:07:33 +01:00
Norman Maurer
12852a20fb
Remove not-needed call of ByteBuffer.clear(). See #161
2012-01-24 20:39:42 +01:00
Jeff Pinner
cd934c8305
Fix #157 : ZlibDecoder does not support preset dictionary
2012-01-21 15:32:53 -08:00