Commit Graph

2669 Commits

Author SHA1 Message Date
Norman Maurer
0136cbad1e Add missing support 2012-05-15 22:16:27 +02:00
norman
80a2ae635b Use a prelocation size of 1. Thanks to @fredericBregier fir spotting this 2012-05-15 13:53:42 +02:00
norman
f603494424 Make sure CompositeChanneBuffer does not throw a UnsupportedOperationException if discardReadBytes() discard the whole content of the buffer. See #325 2012-05-15 13:14:23 +02:00
Norman Maurer
ab1cf37f7c Only some javadoc 2012-05-14 21:21:52 +02:00
Norman Maurer
94a5f3dbc7 Adjust javadocs as the usage has changed 2012-05-14 20:18:21 +02:00
Norman Maurer
7468340842 Merge pull request #324 from netty/jboss_marshalling
Add JBoss Marshalling support. Yay!
2012-05-14 11:12:37 -07:00
Norman Maurer
7b7c585cf3 Hide the TooBigObjectException and just throw a TooLongFrameException 2012-05-14 20:10:58 +02:00
Norman Maurer
6be409a4f6 Remove whitespace 2012-05-14 18:07:36 +02:00
Norman Maurer
0fa60c82fa Hide ChannelBufferByteInput, ChannelBufferByteOutput and LimitingByteInput 2012-05-14 17:34:11 +02:00
Trustin Lee
ef51cf1c8e Backport pretty hexdump from next-api 2012-05-15 00:15:50 +09:00
norman
1f866fc7ad Add decoder/encoder for jboss marshalling
Use property for version
2012-05-14 17:15:45 +02:00
Trustin Lee
d24c48cbfb Code clean up 2012-05-14 23:06:14 +09:00
Trustin Lee
b6aa509f32 Add ChannelFuture.sync() and syncUninterruptibly()
- Deprecate rethrowIfFailed() which is inferior to the new ones
2012-05-14 22:24:45 +09:00
norman
127b89f276 Fix checkstyle errors 2012-05-14 07:27:36 +02:00
Jeff Pinner
226c2f7243 SPDY: remove frame size limit in frame decoder 2012-05-12 20:00:00 -07:00
vibul
1bf045a7ba Fixed bug where subprotocol not sent by client 2012-05-12 21:06:12 +10:00
Frédéric Brégier
49142f36c8 Merge pull request #318 from fredericBregier/3
3 Issue #317 fix through this commit (addContent ignore initial content)
2012-05-10 11:31:44 -07:00
Frédéric Brégier
614bd93348 Revert for Java 5 compatibility 2012-05-10 21:24:11 +03:00
Frédéric Brégier
11b139ace7 Revert for Java 5 compatibility 2012-05-10 21:21:19 +03:00
Frédéric Brégier
fb5eb0afd9 Revert for Java 5 compatibility 2012-05-10 21:20:08 +03:00
Frédéric Brégier
79f32ecba9 Fix for issue similar to #317 2012-05-10 20:58:57 +03:00
Frédéric Brégier
3cbc0b5f32 remove unecessary .name() in String methods 2012-05-10 20:56:05 +03:00
Frédéric Brégier
eac75ddfbb remove unecessary .name() to Charset in String methods 2012-05-10 20:54:40 +03:00
Frédéric Brégier
b05fe03615 Remove unecessary .name() on Charset in String methods 2012-05-10 20:53:22 +03:00
Frédéric Brégier
a690166c77 Fix for issue #317 2012-05-10 20:51:33 +03:00
norman
33cee3dc9d Backport support for nio udp multicast to 3 branch. See #216 2012-05-10 10:15:40 +02:00
norman
d920c6dc95 Backport support for nio udp multicast to 3 branch. See #216 2012-05-10 09:35:24 +02:00
Norman Maurer
cfc52b9d49 Add more tests for ChunkedWriteHandler 2012-05-06 19:30:50 +02:00
Norman Maurer
ccfa196b3b Add test for fix of regression in ChunkedWriteHandler. See #310 2012-05-06 19:30:41 +02:00
Norman Maurer
ea5cb8ae2b Fix regression in ChunkedWriteHandler. See #310 2012-05-06 19:30:29 +02:00
Norman Maurer
78ab007e1b Fix regression in ChunkedWriteHandler. See #310 2012-05-06 19:30:14 +02:00
norman
924f0df93f MemoryAwareThreadPoolExecutor needs to notify ChannelFuture's of the not-executed ChannelEventRunnable on shutdownNow(). See #309 2012-05-04 14:41:54 +02:00
norman
b5706d54f7 Make sure the ChannelFuture's of the MessageEvent's are notified on channelClosed(..) event and on removal of the handler from the ChannelPipeline. See #308 2012-05-04 13:47:30 +02:00
norman
9ebff3abf2 Make sure we fire the event from the io-thread. See #306 2012-05-04 13:46:23 +02:00
norman
f5eb6b61cd Fix checkstyle. See #307 2012-05-04 13:45:02 +02:00
norman
85a280b356 Let ChannelLocal implement Iterable. See #307 2012-05-04 13:20:08 +02:00
norman
3a99550132 Refactor ChunkedWriteHandler to remove synchronization which can have bad side effects like deadlocks. See #297 and #301 2012-05-04 10:05:17 +02:00
norman
2a249c14b1 Notify ChannelFuture's of queued writes if the SslHandler gets removed from the ChannelPipeline. See #306 2012-05-04 09:49:37 +02:00
norman
33ff0421e2 Fail all queued writes if the ChunkedWriteHandler is removed from the ChannelPipeline. See #304 2012-05-04 09:37:11 +02:00
norman
769275e751 Fail all pending writes on channelClosed(..). See #305 2012-05-04 09:29:59 +02:00
Norman Maurer
250f1667b9 Allow to register ChannelFutureListener's that get notified once the inbound of the SSLEngine is closed. See #137 2012-05-03 16:39:35 +02:00
norman
7d2d742a43 Make sure ChunkedInput.close() is not called before the write is complete. See #303 2012-05-03 09:17:37 +02:00
norman
abc2877f91 Fix compile errors. See #299 2012-05-03 09:16:45 +02:00
Frédéric Brégier
9ab14fba6d Merge pull request #299 from fredericBregier/3
3 update branch 3 from very same issues and improvements fixed for #290 #291 #292
2012-05-02 06:26:15 -07:00
norman
308afcaa40 Fix small race which can lead to resumeTransfer() to not kick in. See #300 2012-05-02 12:13:00 +02:00
Frédéric Brégier
26b4586af6 Same small fix on readUnsigned for skipControlCharacters 2012-05-02 12:36:48 +03:00
norman
97069027a8 Make sure the exception event is fired from within an io thread. See #298 2012-05-02 11:29:20 +02:00
Frédéric Brégier
80c6f65731 Fix same optimization than from Branch Master issue #292 to branch 3 2012-05-02 10:30:35 +03:00
Frédéric Brégier
faf596f691 Fix same optimization than from Branch Master issue #292 to branch 3 2012-05-02 10:22:43 +03:00
Frédéric Brégier
871a26b164 Fix same issue from branch Master issue #291 for branch 3 2012-05-02 10:20:16 +03:00
Frédéric Brégier
b6abfa70db Fix same issue from branch Master issue #291 for branch 3 2012-05-02 10:19:43 +03:00
Frédéric Brégier
1313300264 Fix same issue than branch Master issue #290 for branch 3 2012-05-02 10:18:24 +03:00
Frédéric Brégier
5ef153f4c1 Fix same issue than branch master #290 for branch 3 2012-05-02 10:17:13 +03:00
norman
a688f9212e Remove workaround for ipv6 link-localaddresses as it not work on most os / jdk versions. See #267 and #295 2012-05-02 07:35:35 +02:00
norman
49d59e36f5 Remove workaround for ipv6 link-localaddresses as it not work on most os / jdk versions. See #267 and #295 2012-05-02 07:35:12 +02:00
Norman Maurer
b614f81bf7 We need to set the exception on each MessageEvent. See #293 2012-05-01 12:02:47 +02:00
Norman Maurer
ea38734b13 Optimize AbstractNioWorker.cleanUpWriteBuffer(..). See #293 2012-04-29 20:10:51 +02:00
Norman Maurer
ca19df80f5 Remove volatile keyword as it is not needed 2012-04-29 13:43:52 +02:00
Norman Maurer
5219a59597 Fix up code to work with java5. See #286 2012-04-29 13:38:56 +02:00
Vibul Imtarnasan
ced80f3ae2 Merge pull request #286 from veebs/3HttpPostBody
Backport post request body and file upload to 3.x branch
2012-04-28 15:37:30 -07:00
norman
681c5dd0d0 Enable gathering writes support for 3.5.x . See #271 and #269 2012-04-27 10:25:09 +02:00
norman
a67194fc2c Disable gathering writes till we want to release 3.5.0.Final 2012-04-27 08:57:52 +02:00
norman
3454cbbc03 Fix checkstyle 2012-04-27 08:57:12 +02:00
vibul
78593ab271 remove volatile 2012-04-27 15:45:10 +10:00
norman
8507be1a71 Mark constructor as @deprecated. See #283 2012-04-27 07:29:05 +02:00
Norman Maurer
99da06bfd1 Merge pull request #285 from veebs/3WsMaxFrameLength
Issue #283 - (3.x) Support max frame length for web socket to limit chance of DOS attack
2012-04-26 22:22:21 -07:00
vibul
7c72a91e6b We need to keep the old constructor to not break the API. 2012-04-27 10:22:56 +10:00
vibul
45d58e9459 Removed @Override to make it work with java 5. 2012-04-27 09:57:54 +10:00
vibul
979bca4b35 As per Noman's request: There is not need for volatile here as we only
handle upstream events.
2012-04-27 09:52:01 +10:00
vibul
e469980236 Reapply files form master to keep formatting. 2012-04-27 09:51:18 +10:00
vibul
e8b016461c Reapply changes to HttpHeaders without indenting problems so that we can
make sure of additions.
2012-04-27 09:48:15 +10:00
vibul
66b4735acd Replaced tabs with 4 spaces. 2012-04-27 09:32:35 +10:00
Norman Maurer
7c95d475d7 Use ThreadRenamingRunnable in Boss and Workers again. See #289 2012-04-26 21:52:13 +02:00
norman
7c5ae2787d Make sure netty detects the right java version when running on android. See #282 2012-04-26 15:31:04 +02:00
norman
1d4e5ac66d Make sure netty detects the right java version when running on android. See #282 2012-04-26 15:27:58 +02:00
norman
8777c3c02b OioWorker failed to fire channelConnected event for OioAcceptedSocketChannel which is fixed now. This also fix a race which can could lead to missing events. See #287 2012-04-26 14:41:47 +02:00
norman
880b01e45f OioWorker failed to fire channelConnected event for OioAcceptedSocketChannel which is fixed now. This also fix a race which can could lead to missing events. See #287 2012-04-26 14:30:20 +02:00
norman
86217b692a Fix formatting 2012-04-26 11:56:58 +02:00
norman
0a1c76b0f7 Add back UnsafeDynamicChannelBuffer to make it possible to use next netty release again in infinispan 2012-04-26 11:27:23 +02:00
vibul
802e5366b2 Backport post request body and file upload to 3.x branch 2012-04-26 10:44:37 +10:00
vibul
763f22463e Issue #283 - Support max frame length for web socket to limit chance of DOS attack 2012-04-26 10:09:22 +10:00
norman
c6ce31db96 NioDatagramWorker.ChannelRegistionTask should handle ClosedChannelException gracefully. See #281 and #277 2012-04-25 09:21:33 +02:00
Norman Maurer
7e00f614d3 Remove benchmakr which use used as proof of concept 2012-04-24 20:20:17 +02:00
Norman Maurer
b4c00f0441 Merge pull request #280 from netty/cumulation_optimization
Make the cumulation usage more memory efficient
2012-04-24 11:15:45 -07:00
Norman Maurer
f0f152085a Merge pull request #271 from netty/gathering_write_support
Use gathering writes if java version is >= 7 . See #269
2012-04-24 11:06:30 -07:00
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
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
Norman Maurer
57df916755 UnsafeDetectUtil checks that the Unsafe class has the field theUnsafe.
Fix for #156
2012-01-21 21:52:37 +01:00
Trustin Lee
c95f9314f3 Fix #153: Add ChannelFuture.rethrowIfFailed() 2012-01-19 13:34:28 +09:00
Trustin Lee
fafeae7aa3 Clean up the new WebSocket package 2012-01-19 13:12:28 +09:00
Trustin Lee
e4a7900b10 Rename HTTP snoop example classes for disambiguation 2012-01-15 00:28:57 +09:00
Trustin Lee
c850bd9231 Overall code cleanup
* Fixes based on checkstyle feed back
* Simplify WebSocket client example (needs more work)
* Rename Autobahn test server classes
2012-01-15 00:17:41 +09:00
Trustin Lee
831a13694c Reverting the previous commit which makes no sense 2012-01-13 20:49:31 +09:00
Trustin Lee
968ed8b53e Do not count a ChannelDownstreamEventRunnable
* MATPE is only for upstream events.
2012-01-13 20:47:13 +09:00
Trustin Lee
9c4cd3702f Backport #111 - Improve org.jboss.netty.execution for more flexible thread model 2012-01-13 20:36:45 +09:00
Trustin Lee
009300fad3 Overall cleanup / Add lost old jzlib headers 2012-01-13 17:39:53 +09:00
Norman Maurer
94490aeb2e Fix compile error. No idea why this was in here.. 2012-01-11 18:00:38 +01:00
Norman Maurer
02be2523e0 Remove close(..) call which gave us troubles with
ClosedChannelException. See #142 and #138
2012-01-11 17:59:30 +01:00
Trustin Lee
e2109b236b Fix various checkstyle violations
Backported from master
2012-01-11 20:17:47 +09:00
Norman Maurer
53fede511c Fix possible JavaDoc error in QueryStringEncoder. Type mismatch. 2012-01-08 21:53:02 +01:00
Norman Maurer
54bba7239c Fix NPE which is triggered if the destory method is called before
channelOpen(..). See #143
2012-01-07 17:44:36 +01:00
Trustin Lee
72a8159344 Issue #141: hashdos security vulnerability in QueryStringDecoder and possibl
* Limited maximum number of parameters to 1024 by default and made the limitation configurable
* QueryStringDecoder is now able to handle an HTTP POST content
* Backported the improvements from master
2011-12-30 18:00:42 +09:00
Vibul Imtarnasan
9d8f08628e Merge pull request #131 from veebs/WebSocketVersion3.2
Changed tabs to spaces and added some docs for websocket packages.
2011-12-15 03:51:09 -08:00
vibul
cc494310da Change tabs to spaces. 2011-12-15 22:36:47 +11:00
Trustin Lee
0897206e69 Do not call setPipelineFactory() unnecessarily 2011-12-15 17:01:11 +09:00
Trustin Lee
414b18e704 Fix #129: Memory leak when setOptions() fails while accepting a new connection. 2011-12-15 16:39:10 +09:00
Trustin Lee
c6ef712503 Do not use ObjectStreamClass.lookupAny() to resolve interfaces
Fixes #130
2011-12-15 16:35:27 +09:00
vibul
d8d3cfd60b Format source code 2011-12-15 16:35:01 +11:00
vibul
f5cc1e02fa Support websocket client custom headers. See pull #123 2011-12-15 15:09:21 +11:00
vibul
cedbfba07d Change use of specification version to wire protocol version 2011-12-15 14:34:20 +11:00
vibul
a664e92244 Back port #115 and #117 to 3.2 branch 2011-12-11 22:50:19 +11:00
vibul
24ef8a5259 Remove @override annotations which are only valid with java6 2011-12-11 22:23:44 +11:00
Norman Maurer
3359a565c2 Make LinkedTransferQueue also work in java5 envs. 2011-12-11 11:53:00 +01:00
Norman Maurer
36e8c4e8f2 Make it work with java5 also 2011-12-11 11:30:11 +01:00
Norman Maurer
43f72b42f7 Rename test class to be more inline with the rest of the project 2011-12-11 11:28:31 +01:00
Norman Maurer
9e7c87b683 Remove @override annotations which are only valid with java6 2011-12-11 11:23:40 +01:00
Chavdar Botev
f93e356003 fix for issue 113 2011-12-10 14:58:27 -08:00
Trustin Lee
0ee7123aa6 No need to specify a default value 2011-12-09 15:11:42 +09:00
Trustin Lee
6e49e107d4 Better handshaker naming / Remove deprecated example / Hide UTF8 classes from users 2011-12-09 14:56:24 +09:00
Trustin Lee
2b8b11c60a Deprecate old websocket package / Update websocket version list 2011-12-09 14:37:50 +09:00
Trustin Lee
f91ebb14b2 More license updates 2011-12-09 14:31:04 +09:00
Trustin Lee
c126ceffdd Build tarball only 2011-12-09 14:20:32 +09:00
Trustin Lee
2231c31f9f Fix license headers / Remove JBoss.org style 2011-12-09 14:16:33 +09:00
Trustin Lee
16160a0e69 Remove outdated UML / Fix image URL
* We are going to focus more on the netty-book project instead of
outdated UML diagrams
2011-12-09 13:54:15 +09:00
Trustin Lee
683d678c17 Remove @author and @version / Remove COPYRIGHT.txt
* The new copyright header replaces @author
* COPYRIGHT.txt is irrelevant to us now.
2011-12-09 13:44:53 +09:00
Trustin Lee
f9b879e73f http://jboss.org/netty/ to http://netty.io/ 2011-12-09 12:47:26 +09:00
norman
081395410d Only create UnsafeDynamicChannelBuffer if really needed. See #108 2011-12-08 14:36:46 +01:00
norman
3b368125b0 Fields in ReplayingDecoder does not need atomic nature. See #108 2011-12-08 14:29:12 +01:00
norman
0b77d89004 Always cleanup() in ReplayingDecoder if we have received any messages at
all. See #105
2011-12-07 20:41:03 +01:00
norman
4b9376d3c8 Missed to commit these files before. Part of #102 2011-12-07 19:08:49 +01:00
norman
b2be5f5058 Backport latest LinkedTransferQueue to 3.2.x. This also includes changes
to allow the usage in java5 enviroments. Be aware that the new
LinkedTransferQueue will only be used when java6+ was found. See #102
2011-12-07 17:14:11 +01:00
Vibul Imtarnasan
1a6dae4c66 Merge pull request #99 from veebs/WebSocketFor3.2
Back portal WebSocketX package from master into 3.2
2011-12-06 15:06:15 -08:00
Trustin Lee
5dce05e4bd Remove DocBook from build 2011-12-03 20:02:50 +09:00
Trustin Lee
97646745c1 Merge branch '3.2' of github.com:netty/netty into 3.2 2011-12-03 19:56:13 +09:00
Trustin Lee
a4f2629563 Separate the user guide out of the project. 2011-12-03 19:54:11 +09:00
norman
936e5ae1a8 Make sure the cumulation Buffer is only created if really needed. See
#88
2011-12-02 07:22:14 +01:00
vibul
67650530e6 Port websocket V10 and V17 support from master back into 3.2. 2011-12-02 16:29:42 +11:00
norman
77cbd3de34 Replace synchronization with an lock free approach in OMATPE. See #80 2011-12-01 12:13:18 +01:00
norman
49f2616972 Remove the usage of AtomicLong as this only confuse users. The Handler
is not suited for re-use anyway. See #93
2011-12-01 09:41:57 +01:00
norman
9ac5b8be83 Make it easier to issue the handshake when SslHandler is used in
a client. See #84
2011-11-29 11:45:18 +01:00
Trustin Lee
4be4e583c7 Upgrade depepdencies to the latest versions
* Regenerate LocalTimeProtocol.java with the latest protoc
* Add an instruction on how to generate LocalTimeProtocol.java
* Not upgrading maven-bundle-plugin, which has a regression in 2.3.5:
  * https://issues.apache.org/jira/browse/FELIX-3058
2011-11-24 11:05:33 +09:00
Trustin Lee
84fd044eb4 Fix weird repo mess 2011-11-24 10:20:05 +09:00
Trustin Lee
359417358e Add missing license headers and fix class name
* Classloader -> ClassLoader
2011-11-24 10:11:50 +09:00
norman
e6ef89263b Remove @override annotation from interface implementation to make it
compile and usable with java5. This part of the backport of pull request
#75
2011-11-23 15:09:50 +01:00
norman
9424c26caf Merge pull request #75 to the 3.2 branch. Also remove @override
annotation for interface implementation to make it possible to compile
and use with java5
2011-11-23 15:07:02 +01:00
norman
8d40487ff7 Backport fix for #72. QueryStringDecoder should also support ; 2011-11-23 07:22:49 +01:00
Trustin Lee
dcaf6c8645 Include the duplicate name in an exception message 2011-11-23 14:06:07 +09:00
Trustin Lee
249ab1b5b4 Move a final field before non-finals 2011-11-23 14:04:28 +09:00
Trustin Lee
c3240a1ded Merge branch '3.2' of github.com:netty/netty into 3.2 2011-11-23 14:02:35 +09:00
Trustin Lee
2a9c5efe8f Add a missing close(SelectionKey) call
* Without calling close(SelectionKey), the client boss loop can fall
into an infinite loop.
2011-11-23 13:58:52 +09:00
Norman Maurer
82c852fc5e failFast field should be final 2011-11-22 12:58:20 +01:00
Trustin Lee
0da39901c8 Consistent fail-fast property
* DelimiterBasedFrameDecoder and LengthFieldBasedFrameDecoder must
expose the fail-fast option consistently
* Renamed failImmediatelyOnTooLongFrame to failFast
2011-11-22 18:39:11 +09:00
Trustin Lee
0d4dfefeb0 Backport the pull request #70 2011-11-22 16:34:35 +09:00
norman
13d0d84852 Revert "Fix NETTY-452, add an option for whether to count length field into packet length or not"
This reverts commit db5d74748b.
2011-11-11 08:38:50 +01:00
norman
852e0a1ed8 Revert "Revert "Adjust to current master""
This reverts commit 91ea9028f4.
2011-11-11 08:38:10 +01:00
norman
91ea9028f4 Revert "Adjust to current master"
This reverts commit 16792a22be.
2011-11-11 08:36:12 +01:00
norman
16792a22be Adjust to current master 2011-11-10 09:28:07 +01:00
norman
6231030f2b Add failImmediatelyOnTooLongFrame option to DelimiterBasedFrameDecoder
and LengthFieldBasedFrameDecoder
2011-11-10 09:03:56 +01:00
Norman Maurer
db5d74748b Fix NETTY-452, add an option for whether to count length field into
packet length or not
2011-11-09 20:43:50 +01:00
Jeff Pinner
5b46cb4cfe ignore HttpOnly as a cookie name instead of throwing exception 2011-11-09 09:51:26 -08:00
Norman Maurer
9c1950606b Merge branch '3.2' of ssh://git@github.com/netty/netty.git into 3.2 2011-11-06 20:18:18 +01:00
Norman Maurer
dd8ec0ea30 release replaying decoder cumulation buffer after firing upstream 2011-11-06 20:17:21 +01:00
Norman Maurer
a555949cb5 fix compareTo 2011-11-06 07:55:30 +01:00
Norman Maurer
e4bd678846 Remove not used SerialVersionUID fields 2011-11-03 20:30:44 +01:00
Norman Maurer
a91c56c84d Remove iostream support from 3.2 branch. This will only go into 4.x 2011-11-03 19:29:22 +01:00
Norman Maurer
24e0b01e8d Release the cumulation buffer after firing upstream so we don't end up
with a "leak" because of a very big ChannelBuffer. This patch is
extracted of the pull request 39. Thanks to arya for the patch. See
NETTY-453
2011-11-03 11:29:39 +01:00
Norman Maurer
d742a11c25 Merge pull request #22 from pfisterer/master. Which adds a
IOStreamChannelFactory which can be used to connect to InputStream and
OutputStream
2011-10-29 20:18:10 +02:00
norman
b1c27063a2 Make sure the fireExceptionCaught will not get fired while holding a
lock. This will prevent a deadlock which you may see if you have an
ChannelHandler that will trigger Channel.close() on an Exception. See
NETTY-443
2011-10-25 11:52:27 +02:00
norman
6728766158 ChannelLocal nows removes Channel instances from itself once the Channel
was closed. This is configurable via a constructor parameter to allow
the user to choose what to do. The default is to not remove the Channel
from the ChannelLocal to not break usage which depends on the "old"
behavior. See NETTY-447
2011-10-24 08:32:17 +02:00
Trustin Lee
e3386736c0 Fix NETTY-432 HttpContentEncoder should not encode if Content-Encoding is set already and it is not 'identity' 2011-10-22 22:08:49 -07:00
Trustin Lee
a67cdaeb48 Clean up FileRegion and its implementation changes
* Fix broken javadoc tags
* Remove unnecessary public modifier
* Reorder method
* Make releaseAfterTransfer immutable
2011-10-22 21:47:07 -07:00
Norman Maurer
2a4b91b59b Only release FileRegion after transfer was done if its configured todo
so. The default is false to be sure we are compatible with earlier 3.2
releases. This should be changed to default true in the master branch.
See NETTY-440
2011-10-22 14:56:53 +02:00
Trustin Lee
4b9b421af2 NETTY-439 Call channelBound/Connected from worker
* Move channelBound() to RegisterTask
* Simplify the if block in RegisterTask
2011-10-21 15:42:02 -07:00
Trustin Lee
beadadecf7 Fix NETTY-445 Memory leak in SslHandler
* Ensure SSLEngine.closeInbound() and closeOutbound() is called on
handshake failure.
* Ensure connection is closed when a closure request is issued and
handshake failed.
2011-10-21 13:54:07 -07:00
norman
48c6793d30 Revert invalid fix 2011-10-17 15:56:38 +02:00
norman
4be22a42ef ThreadNameDeterminer.CURRENT return the right name now. Was returning
null before all the time
2011-10-17 15:49:29 +02:00
norman
35401caac4 Remove unused imports and fix warnings 2011-10-13 12:08:06 +02:00
norman
fd1d11ec39 Add support for FileRegion in OIOWorker. 2011-10-12 17:09:02 +02:00
norman
2d25998eb4 Make sure FileRegion.releaseExternalResources() is called after the
write was done. See NETTY-440
2011-10-12 15:07:53 +02:00
norman
fb408778d1 Only handle the channelConnected in the worker thread. The channelOpen
and channelBound was moved back to the boss thread. This was done after
reading NETTY-154
2011-10-12 13:15:06 +02:00
norman
cb2e047f1d Remove code which I committed by mistake 2011-10-12 13:04:37 +02:00
norman
bbdc2032f0 Make sure the ChannelOpen, ChannelBound and ChannelConnected events get
fired from within an IO-Worker Thread. This makes sure the Boss-Thread
will not get blocked by any user action
2011-10-12 13:02:50 +02:00
norman
28120aa778 Add javadoc entry to explain that some events are executed in the boss
thread.
2011-10-12 10:35:12 +02:00
Trustin Lee
ba72bf7235 NETTY-438 Re-enable SSL re-negotiation by default
* Re-enabled renegotiation
* Updated Javadoc
2011-10-10 20:47:32 +09:00
Norman Maurer
b89487c445 Add patch of NETTY-434 to the mix to fix Deadlock in
ChunkedWriteHandler. This patch was not written by me...
2011-10-10 18:00:32 +09:00
Evan Meagher
256621246c Fix wording in "Summary" section. 2011-10-10 17:42:15 +09:00
Evan Meagher
f0b30aa8e1 Fix wording in "Advanced Components for More Rapid Development" section. 2011-10-10 17:42:07 +09:00
Evan Meagher
95b127748e Fix wording in "Interceptor Chain Pattern" section. 2011-10-10 17:42:00 +09:00
Evan Meagher
56d6217b53 Fix wording in "Universal Asynchronous I/O API" section. 2011-10-10 17:41:52 +09:00
Evan Meagher
d1a15c9aff Fix wording in "Rich Buffer Data Structure" section. 2011-10-10 17:41:45 +09:00
Trustin Lee
a78d37460c Fixed a compilation error in the example 2011-08-26 13:24:17 +09:00
Trustin Lee
b0d0502413 Added a TooLongFrameException recovery test for DelimiterBasedFrameDecoder 2011-08-19 11:11:16 +09:00
Trustin Lee
3effb0d1b0 NETTY-435 LengthFieldBasedFrameDecoder fails to recover from TooLongFrameException
* Fixed a bug where TooLongFrameException is not raised immediately when the large frame was fully decoded at the first attempt
* Fixed a bug where LengthFieldBasedFrameDecoder does not reset its state completely after raising TooLongFrameException
2011-08-19 11:05:24 +09:00
Trustin Lee
58cc6aec86 NETTY-431 HashedWheelTimer's TimerTask may execute after call to Timeout.cancel()
* Replaced a volatile boolean flag and system date access with an atomic integer flag.
2011-08-12 14:03:48 +09:00
Trustin Lee
1345a00a1a NETTY-430 ChunkedWriteHandler NPE 2011-08-12 13:39:18 +09:00
Trustin Lee
7eb39aaf93 NETTY-429 IllegalArgumentException when an HTTP server sends a '100 Continue' response to HttpContentDecoder.
* Fixed a silly coding mistake where I sent the event in the opposite direction
2011-08-03 21:26:31 +09:00
Trustin Lee
b969706832 NETTY-428 SslHandler does not trigger an exceptionCaught event for some handshake failure cases.
* Made sure SslHandler.handshake() and SslHandler.close() trigger an exceptionCaught event when failed
2011-08-02 15:39:25 +09:00
Trustin Lee
5f19f4c0b6 SSLEngine.beginHandshake() can throw a RuntimeException. 2011-08-02 15:09:35 +09:00
Trustin Lee
dc33e99872 NETTY-408 ChunkedStream generates 1-byte chunks for wrapped input streams that does have sane implementation of available() method
* Updated JavaDoc so that users don't specify an InputStream with poor available() implementation.
2011-08-02 09:48:34 +09:00
Trustin Lee
e0eb72618a NETTY-384 Another deadlock in ChunkedWriteHandler
ChunkedWriteHandler.discard() do not issue write requests to trigger exceptionCaught events and to notify write futures anymore.  Instead, it triggers exceptionCaught events and notifies write futures by itself.  Therefore, no write lock is involved during discard(), avoiding the reported dead lock.

However, this is a temporary solution, and eventually Netty must introduce more robust event thread model.
2011-08-02 09:33:53 +09:00
Trustin Lee
654da6d02a NETTY-422 Add getPipeline() to CodecEmbedder so that a user can modify the pipeline dynamically. 2011-08-02 08:49:13 +09:00
Trustin Lee
8f30a11c67 NETTY-423 Add ChannelPipeline.getNames() 2011-08-02 08:44:15 +09:00
Trustin Lee
4321135452 NETTY-420 HttpClientCodec doesn't handle HEAD requests with Transfer-Encoding: chunked responses
* Reverted back the workaround for servers that sends unnecessary zero-byte chunk in a HEAD response because it actually breaks the codec when the server that conforms to the RFC.
2011-08-02 08:35:12 +09:00
Trustin Lee
5cdcc67086 NETTY-419 ObjectEncoder/ObjectDecoder fails with NPE when deserializing the java.lang.Class instance of an interface type
* Fixed a bug where deserializing an interface class fails due to wrong lookup.
* Implemented class lookup caching
2011-08-02 08:25:26 +09:00
Trustin Lee
99daeebe4a NETTY-417 client channel still open after close and wait
* Fixed a bug in SslHandler where a write attempt made after SSLEngine is closed result in unnotified future.  Fixed by respecting the case where SslEngineResult.Status == CLOSED
2011-08-02 07:59:14 +09:00
Trustin Lee
07e9378423 NETTY-417 client channel still open after close and wait
* Fixed a race condition where NioSocketChannel's state variable is updated *after* its close future is notified
* Removed unnecessary use of ChannelFutureListeners in NioSocketChannel and AbstractChannel

Conflicts:

	src/main/java/org/jboss/netty/channel/AbstractChannel.java
	src/main/java/org/jboss/netty/channel/socket/nio/NioSocketChannel.java
2011-08-02 07:58:16 +09:00
Trustin Lee
caf8b39172 Fixed a bug where the future associated with the close request is not notified when the channel was closed already when SslHandler attempts to send a closure_notify.
This shouldn't be a problem to most applications because they usually do not specify their own future object for the close request.
2011-08-02 07:49:45 +09:00
Felix Trepanier
7e50bd5160 do not encode if empty content 2011-08-02 06:48:01 +09:00
Trustin Lee
483f093036 NETTY-415 ChannelFuture.setFailure() not called when exception thrown handling Channel.close()
* Made sure the ChannelFuture associated with a downstream event is marked as failure when an exception is raised before it reaches at ChannelSink.
2011-08-02 06:37:00 +09:00
Trustin Lee
a804c3495e NETTY-418 isCompleteFailure() and isCompleteSuccess() are both true at the same time
* Fixed incorrect isPartialSuccess(), isPartialFailure(), isCompleteFailure() implementation
2011-08-01 06:12:01 +09:00
Trustin Lee
2d35bf2155 NETTY-425 ChannelBuffers.compare does not handle unsigned bytes correctly
* Fixed a bug where signed comparison is made where unsigned comparison is expected
2011-08-01 04:28:29 +09:00
Trustin Lee
fba8c7b7a4 NETTY-426 Prevent a user from reusing an upstream MessageEvent to write
something

Modified the pipeline implementations so that it rejects the attempt to
send an UpstreamMessageEvent to downstream
2011-08-01 04:17:39 +09:00
Trustin Lee
bf41f4b099 NETTY-410 NioWorker write deadlock
Applied the patch provided by Greg Dhuse.
2011-08-01 04:00:26 +09:00
Trustin Lee
d1b40a3c8b NETTY-407 HttpTunnelingClientSocketChannel failed close() is not sent to
calling futures.

* HttpTunnelingClientSocketChannel.writeLastChunk should return a failed
future instead of raising an exception.
2011-08-01 03:54:47 +09:00
Trustin Lee
8f659833c6 NETTY-406 ProtobufEncoder should also support Message.Builder
* Added support for Message.Builder
2011-08-01 03:46:51 +09:00
Trustin Lee
7338267221 NETTY-389 java.lang.ClassCastException: org.jboss.netty.channel.FileRegion cannot be cast to org.jboss.netty.buffer.ChannelBuffer
* Updated JavaDoc to let users know that not all transports support FileRegion
* Added FIXME for future improvement
2011-08-01 03:39:31 +09:00
Trustin Lee
b2bf5e60af NETTY-410 NioWorker write deadlock
Applied the patch provided by Greg Dhuse.
2011-08-01 01:33:20 +09:00
Trustin Lee
189567322f Fixed code format 2011-07-29 13:11:19 +09:00
nibin
bc8b92e1f7 * Fixed the bug in CookieEncoder if there are no cookie's set while
calling encode(). Without the fix, it ended up in calling the
exception "java.lang.StringIndexOutOfBoundsException".
* Also added test case to verify the patch

Change-Id: Ib96425e07ab50be027ade7be0748cceb6438a586

Conflicts:

	src/test/java/org/jboss/netty/handler/codec/http/CookieEncoderTest.java
2011-07-29 13:09:33 +09:00
Trustin Lee
349b03b467 Handle chunked encoding properly for non-200 responses 2011-05-26 12:11:02 +09:00
Trustin Lee
8f7efa0548 Made IdleStateHandler @Sharable and removed unnecessary lazy
initialization in ReadTimeoutHandler
2011-05-04 17:30:25 +09:00
Trustin Lee
098ca0342c NETTY-401 - NullPointerException when ReadTimeoutHandler is
concurrently initialized and destroyed

* Made ReadTimeoutHandler @Sharable
* Updated the UptimeClient again
** no static fields for global state - just reuse the handlers.
2011-05-04 17:10:32 +09:00
Trustin Lee
c3d97acd03 Fixed a bug in the uptime example where uptime is reset even when it
shouldn't be.
2011-05-04 16:55:54 +09:00
Bruce Mitchener
2a2e57f618 Close bold tag. 2011-05-04 14:04:48 +09:00
Will
1734f5fd01 fix typo in exception message 2011-04-18 17:00:50 +09:00
Daniel Bevenius
66566a1acd Added a timeout for the UdpClient so that the test cannot hang.
I noticed the build "hanging/halting" on the test when running the cobertura code coverage Eclipse plugin.
2011-04-18 16:57:17 +09:00
Trustin Lee
841043006c NETTY-394 SslHandler does not work with a little endian buffer
Added SslHandler.getShort() which replaces ChannelBuffer.getShort() calls
2011-04-02 03:32:15 +09:00
Trustin Lee
2351797a43 NETTY-393: SslHandler infinite loop on Apache Harmony with large payload
Increased the SSL buffer size by 1024 as advised
2011-04-02 03:09:05 +09:00
Trustin Lee
370160d0a5 Fixed an infinite loop on a certain NIO impl 2011-03-25 02:30:58 +09:00
Trustin Lee
77f79c3ea6 Fixed a typo 2011-03-09 00:21:11 +09:00
Trustin Lee
df656bf139 Fixed a compilation error. Doh! 2011-03-05 02:51:51 +09:00
Trustin Lee
2d7e9cab6d Updated Javadoc 2011-03-03 02:02:18 +09:00
Trustin Lee
522bfc4664 Do not write an empty buffer unnecessarily when nextChunk() returned
null
2011-03-03 01:36:10 +09:00
Trustin Lee
bf043937af Better variable naming / Fixed potential stall 2011-03-02 20:00:07 +09:00
Trustin Lee
8763c0b858 NETTY-383 deflate-raw support for HttpContentDecompressor
* Added ZlibWrapperType.ZLIB_OR_NONE for auto-detection and updated
the relevant Zlib implementation
2011-02-22 18:05:16 +09:00
Trustin Lee
0859ff782e Fixed issue: NETTY-382 ChannelLocal.remove() should return the return
value of initialValue() instead of null when no value was set.
2011-02-22 16:54:25 +09:00
Trustin Lee
ad1f698cf1 * Fixed a documentation error in ChannelBuffer javadoc
* Clearly specified that FrameDecoder is an implementation of ChannelHandler
2011-02-07 19:59:53 +09:00
Trustin Lee
78104cbd28 Fixed NETTY-381 channelDisconnected event is sometimes not triggered when Channel.close() is called by multiple threads.
* Internal state variable should never be set to ST_CLOSED until the close channel future is set
2011-02-01 13:39:20 +09:00
Trustin Lee
a8f3353d7c Fixed Javadoc error 2011-02-01 12:28:40 +09:00
Trustin Lee
5276a92e71 Fixed issue: NETTY-372 NullPointerException in ChunkedWriteHandler 2011-02-01 12:20:57 +09:00
Trustin Lee
ae6a5ca82d Fixed issue: NETTY-373 Deadlock in ChunkedWriteHandler on channel
close.

* channelInterestChanged event is not fired anymore when a socket is
closing because it is unnecessary
2011-02-01 11:43:16 +09:00
Trustin Lee
5c75915f4c NioDatagramWorker should reject the write attempt on an unbound
socket, raising NotYetBoundException.
2011-02-01 11:35:26 +09:00
Trustin Lee
be6cdb4a11 Fixed issue: NETTY-380 releaseExternalResources() hang indefinitely
when called from a handler

* Replaced IoWorkerRunnable with DeadLockProofWorker
* ExecutorUtil now checks dead lock
2011-02-01 11:04:13 +09:00
Trustin Lee
339c2a6641 ChannelGroup.write() should not write to a server channel 2011-01-31 15:25:39 +09:00
Trustin Lee
31df7fa9b1 Fixed NETTY-365 HashedWheelTimer.stop() enters an infinite loop when
called from TimerTask
Fixed NETTY-379 Intermittent slippery task timeout in HashedWheelTimer
* Throw an IllegalStateException if HashedWheelTimer.stop() is called
from TimerTask
* Reschedule the slipped task accurately instead of delaying it by one
round
2011-01-31 14:48:30 +09:00
Trustin Lee
d1f05ea4e7 Fixed a race condition in MemoryAwareThreadPoolExecutor
Replaced a semaphore with a custom concurrency construct to fix a
known race condition in MemoryAwareThreadPoolExecutor
2011-01-13 14:57:03 +09:00
Trustin Lee
5af93c2753 Fixed incorrect usage of ByteBuffer.arrayOffset()
* NETTY-368 Wrappedbuffer does not honour posiiton()
* and similar mistakes found during a review
2011-01-12 19:24:09 +09:00
Trustin Lee
5a3f8aeb82 Fixed issue: NETTY-374 ChunkedWriteHandler and handling messages after
channel close

Fixed a bug where a write requests made after closure are not
discarded
2011-01-12 18:27:17 +09:00