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
Trustin Lee
0f42719e9b
Add DefaultAttributeMap
2012-04-29 23:08:59 +09:00
Trustin Lee
f57ef3d414
Add ChannelBufferHolder.toString()
2012-04-29 21:51:12 +09:00
Trustin Lee
3804f3cbbb
Remove ChannelLocal (deprecated)
2012-04-29 20:40:58 +09:00
Trustin Lee
447545bb19
Remove the methods related with half-close
2012-04-29 18:49:44 +09:00
Trustin Lee
470e7da5d7
Add MultithreadEventLoop
...
- Add EventLoopException to wrap the exceptions while an event loop does
something
- Make EventLoop.register() return EventLoop so that the caller knows
the actual EventLoop that will handle the Channel even if the caller
called register() from MultithreadEventLoop
2012-04-29 18:40:55 +09:00
Trustin Lee
e76e2aeac8
Add missing @Override annotation
2012-04-29 17:59:42 +09:00
Trustin Lee
cdd1ba93f0
Second round of new channel handler API design
...
- Rename ChannelReader to ChannelInboundHandler
- Rename ChannelWriter to ChannelOutboundHandler
- Introduce ChannelBufferHolder instead of adding the common super type
of message buffers and byte buffers
- This is more type-safe and natural.
- Remove the notification methods for buffer closure (might add back
later when revisiting half-closed connection support)
2012-04-29 17:53:50 +09:00
norman
94b10d2d02
Remove volatile on two fields that don't need it
2012-04-27 07:47:37 +02:00
norman
dcd2a10f95
Remove @deprecated constructor. See #283
2012-04-27 07:39:26 +02:00
Norman Maurer
9f2c454ab7
Merge pull request #284 from veebs/WsMaxFrameLength
...
Issue #283 - (master) Support max frame length for web socket to limit chance of DOS attack
2012-04-26 22:38:06 -07:00
vibul
40e9b96764
We need to keep the old constructor to not break the API.
2012-04-27 10:43:34 +10:00
Norman Maurer
e61a9ce7c1
Make sure netty detects the right java version when running on android. See #282
2012-04-26 16:30:46 +03:00
norman
9d555b0b97
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:53:31 +02: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
a8b9e27c92
NioDatagramWorker.ChannelRegistionTask should handle ClosedChannelException gracefully. See #281 and #277
2012-04-25 09:24:51 +02:00
Norman Maurer
476cf97b97
Make the cumulation usage more memory efficient. See #280
2012-04-24 20:41:10 +02:00
Norman Maurer
6e2e9fb3c5
Use gathering writes if java version is >= 7 . See #269 and #271
2012-04-24 20:32:06 +02: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
980d96cf58
Fix possible NPE. See #274
2012-04-21 16:12:08 +02:00
Norman Maurer
5f6b419bb9
Allow to specify the local address when connect. See #276
2012-04-21 16:00:23 +02:00
Norman Maurer
ccf01d133a
Make sure we always cleanup once ReplayingDecoder handles a message. See #259
2012-04-20 20:17:30 +02:00
Norman Maurer
ec409751e1
Correctly handle the stripping of the zoneId / scopeId in all cases. See #267
2012-04-19 16:42:55 +02:00
Norman Maurer
2ecef07c4a
Allow to disable the use of sun.misc.Unsafe via a System property. See #272
2012-04-19 12:07:17 +02:00
Norman Maurer
e719f23f7d
Only log if logging level is enabled
2012-04-19 12:03:09 +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
d808cd0475
Fix compile error
2012-04-17 20:54:38 +02:00
Norman Maurer
b3b5fb1de6
Fallback to LegacyLinkedTransferQueue if using LinkedTransferQueue fails. See #268
2012-04-17 14:17:56 +02:00
Norman Maurer
02dc9ea8c1
Add workaround for connection problems with IPv6 link-local addresses and jdk < 7. See #267
2012-04-17 14:16:37 +02:00
Norman Maurer
2db3e59a6c
Add workaround for connection problems with IPv6 link-local addresses and jdk < 7. See #267
2012-04-17 09:56:15 +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
05615c4779
Throw IllegalStateException if DynamicChannelBuffer exceed the maximum
...
ChannelBuffer size of 2gb. See #258
2012-04-16 09:55:03 +02:00
Norman Maurer
f25453cd36
Merge pull request #261 from CruzBishop/logger-usage
...
Replace System.out logging with InternalLogger
2012-04-15 23:06:14 -07: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
Cruz Bishop
11e974ace3
Fix up the last logging mishits
2012-04-15 19:22:02 +10:00
Cruz Bishop
a682b018b2
More logging
2012-04-15 19:18:35 +10:00
Norman Maurer
fa3c9c8eee
Merge pull request #260 from CruzBishop/logger-usage
...
Replace System.*.println calls with logging
2012-04-15 01:22:26 -07:00
Cruz Bishop
a20ab9184e
Use loggers in some more classes
2012-04-15 17:49:04 +10:00
Cruz Bishop
efabc3c285
Use a logger in ZStream
2012-04-15 17:34:51 +10:00
Cruz Bishop
db97e4eb35
Use a logger in SocketAddresses
2012-04-15 17:29:15 +10:00
norman
d363f73fd8
Only increment the counter if the encode did not fail. See #256
2012-04-12 10:55:18 +02:00