Norman Maurer
eddca7583e
Merge branch '3' into jdk_epoll_bug_workaround
...
Conflicts:
src/main/java/org/jboss/netty/channel/socket/nio/SelectorUtil.java
2012-08-29 07:48:59 +02:00
Norman Maurer
49ad538aef
Log on warn level if the selector was recreated and remove multiple calls to SelectionKey.cancel()
2012-08-29 07:43:14 +02:00
Norman Maurer
6bd6be0b09
Fix checkstyle and broken method call. Part of #569 and #572
2012-08-28 18:19:31 +02:00
Norman Maurer
0522c4ffc4
Merge pull request #572 from fredericBregier/3
...
3 - fix for issue #569
2012-08-28 09:08:22 -07:00
Frédéric Brégier
148fc841ac
Second part of fix for issue #569
...
When moving to take into account arrayOffset, it should have been taken into account also in setReadPosition and other places. Fix it now...
Also fix mismatch algorithm between SeekAheadOptimize and not SeekAheadOptimize (standard) versions.
2012-08-28 16:39:47 +03:00
Frédéric Brégier
a3cedc8b47
First part of fix for issue #569
...
When moving to take into account arrayOffset, it should have been taken into account also in setReadPosition and other places. Fix it now...
2012-08-28 16:23:35 +03:00
Norman Maurer
dc56905630
Merge pull request #545 from jaens/3-fix-spdy-compress
...
Do not write compressed SPDY frames out-of-band in another thread
2012-08-28 05:38:58 -07:00
Norman Maurer
e685e535f9
Introduce a new abstract class called OneToOneStrictEncoder which helps to ensure strict ordering. This should be used if that is needed like in the case of ZIP. See ##546
2012-08-28 13:32:38 +02:00
Norman Maurer
dc8ff7e173
Correctly convert to nanos
2012-08-28 13:04:59 +02:00
norman
039c7563cf
Cleanup
2012-08-27 11:21:05 +02:00
norman
292a186d16
Add workaround for epoll bug that cause 100% cpu usage also in the NioClientSocketPipelineSink
2012-08-27 11:12:15 +02:00
norman
db1a72c02e
Handle ClosedChannelException on re-create of the selector
2012-08-27 11:11:34 +02:00
norman
f8a99a0108
Use nanos to detect the jdk epoll bug. Also use 80% of the select timeout to detect it to be more save. Thanks to @kimchy for spot this
2012-08-27 10:20:40 +02:00
Norman Maurer
798390fc4d
Switch to System.nanoTime() to calculate block time of Selector.select(..)
2012-08-26 18:48:50 +02:00
Norman Maurer
8b4f593397
Allow to adjust timeout of Selector.select(timeout) via org.jboss.netty.selectTimeout property. See #568
2012-08-26 09:02:59 +02:00
Norman Maurer
5d07dea3b7
Use Selecor.select() to accept new Sockets to not need to schedule a timeout if not needed anyway. See #567
2012-08-26 08:46:48 +02:00
Norman Maurer
ff3f2b6361
Re-create Selector if we hit the epoll(..) jdk bug which leads to 100% cpu load. This is just a workaround but helps to recover. See #327
2012-08-25 21:51:52 +02:00
Norman Maurer
1a6e7b4be1
Merge pull request #556 from netty/jdk_bug_workaround
...
Don't rely on the return value fo Selector.select(..) as it is buggy and...
2012-08-25 11:11:05 -07:00
Cruz Julian Bishop
f34eb62104
Remove AbstractChannel.getRandom()
...
Signed-off-by: Cruz Julian Bishop <cruzjbishop@gmail.com>
2012-08-25 16:49:38 +10:00
Cruz Julian Bishop
93c990dd7a
Generate Channel IDs in a pseudorandom fashion
...
Requested by @psweeny in #547
Signed-off-by: Cruz Julian Bishop <cruzjbishop@gmail.com>
2012-08-25 13:43:02 +10:00
norman
5c6e3fe6ba
Don't rely on the return value fo Selector.select(..) as it is buggy and so can cause 100% cpu usage. See #535
2012-08-24 08:59:39 +02:00
Norman Maurer
14d01f4a8f
Move the catch block out of the connect method, which makes more sense as we need to catch it anyway in a more general scope. See See #535
2012-08-23 21:04:34 +02:00
Norman Maurer
85e55eebd8
Add a workaround for the 100% cpu usage that can happen because of an endless loop. See #535
2012-08-23 20:41:22 +02:00
norman
03c4283020
Backport fix for make SslHandler close the connection on SSLException or NotSslRecordException. This needs to get enabled via setter to keep backward compatibility. See #160
2012-08-22 07:46:49 +02:00
Trustin Lee
01ba0ff075
[ #160 ] Revert the fix for #160 for the branch '3'
...
- Fix will be part of 4.x
2012-08-22 13:44:58 +09:00
Trustin Lee
81305d87b4
[ #160 ] No response to write if server is using SslHandler and client is not
...
- Make SslHandler close the connection immediately on SSLException or
or NotSslRecordException
2012-08-22 12:16:40 +09:00
Trustin Lee
31a51b4937
[ #239 ] IdleStateHandler and ReadTimeoutHandler starts two timers
...
- Ensure initialize does not start timer twice
2012-08-21 20:13:44 +09:00
Jaen Saul
4e351f7399
Do not write compressed SPDY frames out-of-band in another thread
2012-08-20 21:39:28 +03:00
Trustin Lee
a93ada2031
[ #539 ] Potential direct memory leak in HttpContentEn/Decoder
2012-08-20 13:40:58 +09:00
Trustin Lee
bf74b16774
[ #539 ] Potential direct memory leak in HttpContentEn/Decoder
2012-08-20 13:35:12 +09:00
Trustin Lee
88c3fd306b
Typo
2012-08-20 12:18:59 +09:00
Trustin Lee
513fc4f78b
[ #539 ] Fix potential direct memory leak in HttpContentEn/Decoder
2012-08-20 12:14:38 +09:00
Trustin Lee
ebbcfbc185
Fix test failure
2012-08-20 12:04:16 +09:00
Norman Maurer
f7f0511193
Set maxAge to Integer.MIN_VALUE by default. See #534
2012-08-19 10:53:13 +02:00
Norman Maurer
af672039d7
Allow to set a negative value for maxAge of DefaultCookie. See #533
2012-08-19 10:45:55 +02:00
Trustin Lee
963b7c20ac
Merge pull request #496 from CruzBishop/static-fixes
...
Some static analysis fixes
2012-08-17 00:12:53 -07:00
Trustin Lee
195a7bb953
Use UTF-8 to encode URI - see #521
2012-08-17 11:44:21 +09:00
Trustin Lee
c509a278c3
Rename variables to reduce confusion
2012-08-17 11:33:54 +09:00
James Tyrrell
e5a7fa2c96
[ #494 ] Automatically adding chunked encoding header breaks streaming
2012-08-16 18:23:22 +10:00
Norman Maurer
3f709efcea
Merge pull request #522 from jpinner/utf8_encode_uri_3
...
Fix #521 : Encode URI using UTF-8 charset
2012-08-16 00:22:19 -07:00
norman
24f1b54c86
Only cache the localAddress if its a non wildcard address, so its possible to retrieve the 'real' adress later once the channel is fully bound/connected. See #524
2012-08-16 07:38:38 +02:00
Jeff Pinner
4f001f3246
Fix #521 : Encode URI using UTF-8 charset
2012-08-15 14:04:30 -07:00
Norman Maurer
b6264c02d9
Make sure that it continue to try to read from the socket even if the SocketTimeoutException was triggered because of the SO_TIMEOUT. See #520
2012-08-15 22:39:40 +02:00
Norman Maurer
d3d5a931d0
Set the SO_TIMEOUT on the underlying Socket so we will be able to run submitted tasks in the IO-Thread even if the read operation would block because of nothing to read. See #520
2012-08-15 22:29:03 +02:00
norman
88124d88ce
Remove synchronized blocks to optimize BufferedWriteHandler. See #519
2012-08-15 15:02:53 +02:00
Cruz Julian Bishop
8af95f0897
Fixed a typo in ObjectEchoClientHandler
...
This fixes #510 in branch 3
Signed-off-by: Cruz Julian Bishop <cruzjbishop@gmail.com>
2012-08-14 19:54:52 +10:00
Norman Maurer
3a3c5de76b
Merge branch '3' of github.com:netty/netty into 3
2012-08-12 10:59:04 +02:00
Norman Maurer
6d87b7629e
Fix NPE in DefaultChannelPipeline if toString() is called with an empty pipeline. See #505
2012-08-12 10:58:43 +02:00
Cruz Julian Bishop
0aebfb762b
Removes unnecessary parentheses for @trustin
...
Part of #496
Signed-off-by: Cruz Julian Bishop <cruzjbishop@gmail.com>
2012-08-09 19:10:17 +10:00
Cruz Julian Bishop
abc2f87f2f
Merge remote-tracking branch 'netty/3' into static-fixes
2012-08-09 19:01:05 +10:00
Trustin Lee
6d5a332667
Fix a buf in CompositeChannelBuffer.setBytes() where -1 is not returned
2012-08-09 17:50:27 +09:00
norman
eb8757f1cb
Fix bug which leads to return HttpMessageEncoder implementations null if encoding a HttpChunk which is the last one. This vilates the OneToOneEncoder contract and so leads to a missing notification of the write future. See #493
2012-08-09 08:02:27 +02:00
Cruz Julian Bishop
618ddb42e3
Replaces two manual array copies
...
This is a potential performance boost, but there shouldn't
be too much of a difference.
Signed-off-by: Cruz Julian Bishop <cruzjbishop@gmail.com>
2012-08-09 09:51:43 +10:00
Cruz Julian Bishop
2f88b9167c
Removes a pointless operation ( +0 )
...
I mean, seriously, this does nothing. At all. :)
Signed-off-by: Cruz Julian Bishop <cruzjbishop@gmail.com>
2012-08-09 09:02:14 +10:00
Cruz Julian Bishop
e685ce36fc
Removes pointless bitwise operations
...
Examples are << 0 and >>> 0
These do nothing at all, and so, should not be there in the first place
Signed-off-by: Cruz Julian Bishop <cruzjbishop@gmail.com>
2012-08-09 08:54:54 +10:00
Cruz Julian Bishop
d206ef6d15
Removes unneeded boxing of integers
...
This is the first in a number of commits that fixes static
analysis problems
Signed-off-by: Cruz Julian Bishop <cruzjbishop@gmail.com>
2012-08-09 08:48:39 +10:00
norman
e0a88a0f15
Share some more code
2012-08-01 09:00:13 +02:00
norman
9f285d1819
Make sure the ByteBuffer is copied on NioDatagramWorker.read(..). See #485
2012-08-01 08:43:41 +02:00
Norman Maurer
40685a030d
Use the right ByteOrder for the ByteBuffer on read(..). See #484
2012-07-31 20:35:50 +02:00
Norman Maurer
95cf6a4a71
Use SocketReceiveBufferAllocator to allocate the ByteBuffer which is used to read from the DatagramChannel. See #483
2012-07-31 20:32:03 +02:00
norman
c28e3c7300
Make the code more compact. See #480
2012-07-30 14:29:50 +02:00
norman
947a12555a
Make the code more compact. See #480
2012-07-30 14:28:28 +02:00
norman
f129ee1e28
Use a percentual calculation to see if a new buffer should get allocated. See #480
2012-07-30 14:18:34 +02:00
norman
d772e3cc74
Fix class name, seems like eclipse did not rename it correctly. See #480
2012-07-30 14:04:33 +02:00
norman
d2fa983d32
Rename class to better reflect its usage. See #480
2012-07-30 13:57:33 +02:00
norman
3070247ca7
Optimize ByteBuffer usage for receiving bytes from the channel. See #480
2012-07-30 13:52:56 +02:00
norman
236b0da210
Allow to set Expires attribute to a date in the past. This may break the behavior of old implementations, so it need some notes in the announcement of the version. See #479
2012-07-30 11:13:42 +02:00
norman
5706d6a2ec
Mark not used queue impls as @deprecated as these are not needed anymore. See #477
2012-07-30 11:10:00 +02:00
Norman Maurer
26b513236f
Replace usage of QueueFactory with ConcurrentLinkedQueue and LinkedBlockingQueue. See #477
2012-07-28 21:35:48 +02:00
norman
5189bb1f3f
Don't close the Selector if no keys are registered. See #471
2012-07-24 15:22:19 +02:00
norman
96182f97e8
Fix race-condition which could lead to a NPE or Exception while register a Channel with a Worker. See #469
2012-07-23 11:21:32 +02:00
norman
36acda0be9
Remove System.err.pritnln(..) statements. See #468
2012-07-23 10:19:35 +02:00
Norman Maurer
a76e8a8e36
Merge pull request #468 from fredericBregier/3
...
Fix issue when SSL is used on top of the Multipart. See #468
2012-07-23 01:18:22 -07:00
Frédéric Brégier
458f983d9d
Fix to standard support with no more forceChunk
2012-07-23 11:11:45 +03:00
Frédéric Brégier
666bf1ffe4
Revert SSL issue on Multipart to force Chunk mode if isMultipart is true
2012-07-23 11:07:26 +03:00
norman
055434dbe1
Merge branch '3' of ssh://github.com/netty/netty into 3
2012-07-23 09:25:47 +02:00
norman
54ad935ec5
Fix race-condition which could lead to a NPE or Exception while register a Channel with a Worker. See #469
2012-07-23 09:25:26 +02:00
Trustin Lee
cb2b2830b2
Fix an infinite loop in CompositeChannelBuffer.setBytes()
...
.. which occurs when a channel is closed during I/O
2012-07-23 15:33:14 +09:00
norman
c059d13108
Fix race-condition which could lead to a NPE while register a Channel with a Worker. See #469
2012-07-23 07:48:03 +02:00
Frédéric Brégier
258f5b00fa
Fix for SSL
2012-07-22 19:38:54 +03:00
Frédéric Brégier
b60a9f6532
Fix for SSL example
2012-07-22 19:36:36 +03:00
Frédéric Brégier
2d6dbd5a92
Fix for SSL example
2012-07-22 19:35:18 +03:00
Frédéric Brégier
a78318149e
Fix for ssl example
2012-07-22 19:33:58 +03:00
Frédéric Brégier
c370fab6fb
Fix issue when SSL is used on top of the Multipat, specially when using Post of a file, since it can change the overall size and therefore giving a real chunk message while it was supposed to not be chunked.
...
Proposal is to allow the user to force chunk mode.
2012-07-22 16:16:22 +03:00
Norman Maurer
7f0f687965
Merge pull request #467 from fredericBregier/3
...
Fix decodeAttribute in HttpPostRequestDecoder to take into account exception from bad format from URLDecoder.decode
2012-07-22 04:40:14 -07:00
Frédéric Brégier
0b2c43f04e
Fix decodeAttribute in HttpPostRequestDecoder to take into account exception from bad format from URLDecoder.decode
2012-07-22 10:59:26 +03:00
Trustin Lee
4e5041d355
Fix typo in test samples
2012-07-19 20:41:35 +09:00
norman
2b7185f10f
Remove unused buggy code
2012-07-18 09:17:15 +02:00
norman
37375708c1
Revert "Use reflection to instance java.util.concurrent.LinkedTransferQueue to make Android not fail. See #458 "
...
This reverts commit 7a87a18c9b
.
2012-07-18 09:11:53 +02:00
Norman Maurer
7a87a18c9b
Use reflection to instance java.util.concurrent.LinkedTransferQueue to make Android not fail. See #458
2012-07-17 21:09:21 +02:00
norman
6c181af6b9
Make sure CompactObjectInputStream fall back to old behavior so make it compatible with older versions of netty which are used on the other end. See #452
2012-07-13 07:19:46 +02:00
Trustin Lee
629cf073e1
[ #453 ] IndexOutOfBoundsException in HttpPostBodyUtil
2012-07-13 13:07:55 +09:00
Trustin Lee
2f3e0fddf2
[ #452 ] Make ObjectDecoder work with JDK 5 again
2012-07-13 13:04:01 +09:00
Trustin Lee
1843094461
[ #452 ] CompactObjectInputStream fails to resolve interfaces
2012-07-13 13:01:29 +09:00
Norman Maurer
d579a5a38f
Fix a bug which lead to a NPE when deserialize interfaces. See #452
2012-07-12 21:14:00 +02:00
norman
c7e276efe0
Check for null values
2012-07-12 07:51:15 +02:00
norman
bd1bc534d8
Add helper method that allows to create a ChannelBuffer out of a hex dump String. See #449
2012-07-11 09:41:31 +02:00
Trustin Lee
ab43b9aa11
Add more constructors to NotSslRecordException
2012-07-11 00:43:42 +09:00
Jeff Pinner
fa4ea1894a
Fix for issue #442 : SpdyFrameEncoder compressor state race condition
2012-07-10 01:44:17 -07:00
Jeff Pinner
4493e9683f
Fix for issue #444 : Http compression error
2012-07-09 11:00:46 -07:00
Norman Maurer
f648aae747
Fix ArrayIndexOutOfBoundsException in ReplayDecoderBuffer which could happen when calling getByte(..) or getUnsignedByte(..). See #445
2012-07-08 11:24:26 +02:00
norman
02c0c5b5e9
Revert "Only parse the packet length one time per packet. See #382 " as this makes no sense after thinking more about it and just makes it harder to read
...
This reverts commit 784722eff4
.
Conflicts:
src/main/java/org/jboss/netty/handler/ssl/SslHandler.java
2012-07-06 13:57:55 +02:00
norman
6421bd3885
Fix a race which could lead to have channelDisconnected event not fired. See #440
2012-07-06 07:39:41 +02:00
norman
9ba1878b73
Fix javadoc warnings
2012-07-05 10:47:09 +02:00
norman
b089f0c59b
Fix javadoc warnings
2012-07-05 10:42:26 +02:00
norman
e0f139c5d7
Optimize SslHandler's detection of supressable exceptions, so it will not break on different OS's or jdk impls. See #79
2012-07-05 09:32:34 +02:00
norman
3385f85f5c
Remove unused import
2012-07-04 14:28:08 +02:00
norman
243f1bb7ee
Add testcsae for #433 . Thanks
2012-07-04 14:21:39 +02:00
norman
d464e86733
Fix a bug where HttpChunk.isLast() return true if the connection was closed and nothing was left in the internal buffer but the received content was not complete. See#433
2012-07-04 09:44:01 +02:00
norman
9a1344c3ae
Throw a special SSLException if a non SSL/TLS record was detected. See #437
2012-07-04 08:26:18 +02:00
norman
18fb438949
Correctly format cookies. This fix some bug which lead to expiring of cookies to not work. See #426
2012-07-04 07:40:39 +02:00
norman
f499348267
Fix checkstyle
2012-07-04 07:39:07 +02:00
Frederic Bregier
1936df2e4d
fix example (cookie)
2012-07-03 20:44:55 +02:00
Frederic Bregier
f74a96ca20
Fix for issue #434 to provide the ability to stop even if no CRLF is
...
provided since some clients as Adobe Flash will not finish the closing
delimiter with a CRLF.
2012-07-03 15:02:40 +02:00
norman
f16c7472de
change default from 1000 -> 1024
2012-07-03 10:40:49 +02:00
norman
b0742950b9
Fix misleading comment
2012-07-03 08:39:35 +02:00
norman
d8880efe61
Use 1000 as default value for the max composite buffer components. This safe a lot of byte copies. See #413
2012-07-03 08:36:59 +02:00
norman
91d5c9a0a6
Use 1000 as default value for the max composite buffer components. This safe a lot of byte copies and so speed up every decoder that extends FrameDecoder. See #435
2012-07-03 08:32:06 +02:00
Norman Maurer
bf23828734
Minimize byte copies by using a CompositeChannelBuffer to concat the chunks. See #413
2012-07-01 14:52:58 +02:00
Norman Maurer
a746b5d3fe
Use FrameDecoder.setMaxCumulationBufferComponents(Integer.MAX_VALUE) for Decoders that needs to handle big frames. See #424
2012-06-29 13:42:43 +02:00
Norman Maurer
28a1992bf4
Add getters for the specified timeout values. See #418
2012-06-29 13:38:51 +02:00
Norman Maurer
70bfaf4454
Fix checkstyle
2012-06-29 13:38:20 +02:00
Norman Maurer
e53be94773
Make sure the readerIndex is updated after the ChannelBuffer was sliced out. See #412
2012-06-29 13:10:27 +02:00
Norman Maurer
076a6a9239
Backport getBuffer(..) method in CompositeChannelBuffer. See #414 and #415
2012-06-29 13:04:15 +02:00
Jaen Saul
e9212afef9
Fix SpdyHttpHeaders.setScheme setting the wrong header
2012-06-28 13:45:56 +03:00
Norman Maurer
83148869aa
Slice the buffer if possible to reduce memory copies when reading the content. See #412
2012-06-28 09:24:32 +02:00
Trustin Lee
215180511d
Add more cookie decoding test case
2012-06-27 12:41:16 +09:00
Trustin Lee
fe6b71c1f0
Deque from the acceptEncodingQueue even if it's not gonna be encoded
2012-06-27 10:27:43 +09:00
Trustin Lee
59a1095c23
Add FrameDecoder.maxCumulationBufferComponents
2012-06-25 11:25:40 +09:00
Trustin Lee
8650cfbc53
Fix #263 No way to pass unfold=true to decoder superclass
...
- Allow modifying unfold property until the decoder is added to a
pipeline
2012-06-24 22:19:17 +09:00
Trustin Lee
1311a2edc1
Simplify FrameDecoder and ReplayingDecoder
2012-06-24 22:12:08 +09:00
Trustin Lee
7f21daed77
Merge pull request #390 from gbehrmann/feature/zerocopyframedecoder
...
ZeroCopyFrameDecoder to avoid excessive buffer copies in FrameDecoder when using large frames
2012-06-24 03:14:05 -07:00
Trustin Lee
76db244fed
Fix #406 : HttpContentCompressor compresses compressed content
...
- Do not compress if the content encoding is not identity
2012-06-24 19:01:20 +09:00
Trustin Lee
b2d8813bf3
Fix #218 : CookieDecoder.decode() throws StackOverflowError
...
- Rewrote key-value decoder not using a regular expression
2012-06-24 19:01:20 +09:00
Norman Maurer
2721d1e9c7
Remove misleading comment
2012-06-24 10:17:23 +02:00
Trustin Lee
e3a8805259
Fix #397 : Allow all cookie names that conform to the RFC
...
- lenient flag is not needed anymore
2012-06-24 14:16:03 +09:00
Trustin Lee
9ae847c33a
Fix test failures
2012-06-24 13:41:54 +09:00
Trustin Lee
3fc7730b2c
Fix #403 - Contradictory JavaDoc in setWriteBufferHighWaterMark
2012-06-24 13:04:20 +09:00
Trustin Lee
fa886dbc80
Fix #405 : CookieEncoder should refuse to encode more than one cookie
...
.. if on server mode
2012-06-24 12:58:33 +09:00
Gerd Behrmann
e329cc3524
ZeroCopyFrameDecoder: Optimize cumulation buffer compaction
...
Avoid calling CompositeChannelBuffer.decompose. A more efficient
frame deocder specific implementation is used that avoids some
of the cost of decomposing a CompositeChannelBuffer.
Added setMaxUnusedBufferCapacity to set a threshold. If a
cumulation buffer wastes more space than the threshold, the
decoder will resort to copying the buffer to free up the unused
space. The semantics are different from FrameDecoder's
setMaxCumulationBufferCapacity in that the threshold is for
unused space, not buffer capacity. This allows the copy of
large buffers to be avoided if only a small amount of space
is to be gained.
If a copy is invoked, only the actual fragment is copied, not
the complete cummulation buffer. This reduces the cost of
copying the buffer.
2012-06-19 22:41:47 +02:00
Gerd Behrmann
0086eb3e1d
ZeroCopyFrameDecoder: Follow checkstyle rules
2012-06-19 22:38:39 +02:00
Gerd Behrmann
a3f46b5359
Merge remote-tracking branch 'upstream/3' into feature/zerocopyframedecoder
2012-06-19 19:10:42 +02:00
Trustin Lee
7aceb7ae8e
Rename NativeZlibEncoder to JdkZlibEncoder
2012-06-19 09:55:41 +09:00
Jeff Pinner
db181f1120
Use java.util.zip in HttpContentCompressor if possible
2012-06-18 11:39:25 -07:00
Frédéric Brégier
bab98ab969
Damn ! Fix typo and type needed for fix #399 for issue #398
2012-06-15 20:40:44 +03:00
Frédéric Brégier
1f696fa2f1
Change back to FileChannel but by block
2012-06-15 11:04:22 +03:00
Frédéric Brégier
7c34781672
Proposal to fix issue #398 by replacing FileChannel.transferTo by manual loop to prevent usage of mmap unde the wood by the JVM, while the optimization will be less efficient.
2012-06-15 09:14:37 +03:00
norman
df11cfab25
Introduce a FrameDecoder.setMaxCumulationBufferCapacity(..) setter which allows to configure how bug the capacity of the cumulation buffer can be before the FrameDecoder tries to optimize memory usage with byte copies. Related to #390
...
This allows the users to set a threshold that matches best their needs. Use Integer.MAX_VALUE to disable copies at all at the cost of bigger memory usage.
2012-06-13 11:22:37 +02:00
norman
cb8fc7af4a
Use a different ThreadLocal for ChannelExecutionEvents to prevent false-positives on deadlock detection. See #387
2012-06-13 08:07:43 +02:00
Trustin Lee
fed2f640ee
serverID -> serverId ( #393 Ensure all fields follow naming convention)
2012-06-12 21:20:36 +09:00
Trustin Lee
c3e70186f8
StreamID -> StreamId ( #393 Ensure all fields follow naming convention)
2012-06-12 20:57:34 +09:00
Trustin Lee
95d8e782e3
ID -> Id ( #393 Ensure all fields follow our naming convention)
2012-06-12 20:31:45 +09:00
Trustin Lee
178d24a16d
Do not use the deprecated methods ( #393 )
2012-06-12 20:27:14 +09:00
Trustin Lee
9464396719
ID -> Id ( #393 Ensure all fields follow our naming convention)
2012-06-12 20:24:51 +09:00
Trustin Lee
d159a43a49
ID -> Id ( #393 Ensure all fields follow our naming convention)
2012-06-12 20:19:52 +09:00
Trustin Lee
a6f5af6116
Remove 'public' modifier which is unnecessary
2012-06-12 20:07:47 +09:00
Trustin Lee
65111fce1d
getPersist(ed) -> isPersist(ed) ( #393 )
2012-06-12 20:05:27 +09:00
Trustin Lee
b9906e94a3
Ensure all fields follow our naming convention ( #393 )
...
- Fix naming issues in SPDY
- For backward compatibility, the methods with bad names were deprecated
2012-06-12 18:05:50 +09:00
Gerd Behrmann
641e5368d0
Add ZeroCopyFrameDecoder
...
Copy of FrameDecoder that avoids copying partial frames to a cumulation
buffer. Instead buffers are kept on a list and composed to a
CompositeChannelBuffer when needed.
CompositeChannelBuffers's decomposite method conveniently allows buffers
from which all data was read to be discarded.
The documented interface stays compatible with FrameDecoder, however
undocumented behaviour used by ReplyDecoder and other subclasses has
changed. For this reason a new class was introduced rather than
modifying the existing FrameDecoder.
2012-06-11 17:11:59 +02:00
norman
c7a96c18d8
Remove unnecessary use of volatile in ChunkedInput implementations. See #389
2012-06-11 12:57:56 +02:00
norman
4776e6ae9f
Sorry.. bad revert "Revert "Merge branch '3' of ssh://github.com/netty/netty into 3""
...
This reverts commit 91accdc5e4
.
2012-06-11 12:49:32 +02:00
norman
91accdc5e4
Revert "Merge branch '3' of ssh://github.com/netty/netty into 3"
...
This reverts commit 7d8a6f9c8e
, reversing
changes made to 78da141c9d
.
2012-06-11 10:07:46 +02:00
Norman Maurer
25109dd351
Exclude bin folder
2012-06-08 18:45:56 +02:00
Norman Maurer
8f429cba47
@Ignore multicast tests
2012-06-08 18:08:16 +02:00
Trustin Lee
3fb5b9e105
Fit to 120 column (Done)
2012-06-08 21:02:11 +09:00
Trustin Lee
90a1bd6965
Fit to 120 columns (in progress)
2012-06-08 20:16:42 +09:00
Trustin Lee
6fce4539ad
CRLF -> LF / Remove trailing whitespace
2012-06-08 11:13:57 +09:00
Trustin Lee
6d647feb7e
Fix a problem where multicast test eats 100% CPU on test failure ( #373 )
...
- Proper resource cleanup fixed 100% CPU issue
- Using a loopback interface made the test pass
2012-06-08 08:59:28 +09:00
Norman Maurer
758b7dc793
Make sure calling ExecutionHandler.releaseExternalResource() does not lead to a dead-lock when calling from a ChannelEventRunnable. See #200
2012-06-07 15:40:00 +02:00
Norman Maurer
4e8c3638e1
Make sure multicast test use correct interface. This also fix #373
2012-06-07 15:27:43 +02:00
norman
fc2049b5c7
Make sure we call super.
2012-06-06 11:47:44 +02:00
norman
4f81776e06
Notify ChannelFuture first on handshake() error. See #383
2012-06-06 08:47:31 +02:00
norman
784722eff4
Only parse the packet length one time per packet. See #382
2012-06-06 08:42:36 +02:00
Trustin Lee
977ce4e645
Update license headers
2012-06-04 13:35:22 -07:00
Norman Maurer
cec88160d4
Merge pull request #380 from jamestyrrell/3-new
...
Improve HTTP message streaming in decoder
2012-06-04 09:21:07 -07:00
norman
9b097ddea0
Skip test on windows as it may fail because of permission problems
2012-06-04 15:04:24 +02:00
norman
508edbfdcc
Add a testcase to prove that we have no bug in ChunkedWriteHandler when notify futures
2012-06-04 14:27:20 +02:00
norman
4a48419dc6
Merge branch '3' of ssh://github.com/netty/netty into 3
2012-06-04 13:45:48 +02:00
norman
a06b3a41e8
Move in correct package
2012-06-04 13:45:04 +02:00
James Tyrrell
78301f4ac6
Improved HTTP message streaming in HttpMessageDecoder
2012-06-03 21:29:43 +10:00
Trustin Lee
38314b5191
Fix #378 again
...
- @jroper's fix did not work, so I just fixed it again.
Conflicts:
src/main/java/org/jboss/netty/handler/codec/http/DefaultCookie.java
2012-06-02 23:08:43 -07:00
James Roper
e13ff4ae93
Fixing #378 , when path or domain are null in both this and that, equals and compareTo return false even when the cookies are equal.
2012-06-02 19:50:36 -07:00
Frédéric Brégier
25c31cd137
Improve Performance by calling very much less sao.setReadPosition(x)
2012-06-02 21:25:55 +03:00
Norman Maurer
b0ba1b9bb6
Let the user explicit set if gathering writes/reads should be used. See #374
2012-06-01 21:03:33 +02:00
norman
8ca40aa148
Remove bad test
2012-06-01 10:26:21 +02:00
norman
a77e4b041e
Revert " Make sure calling ExecutionHandler.releaseExternalResource() does not lead to a dead-lock when calling from a ChannelEventRunnable. See #200 "
...
This reverts commit 7800187433
.
2012-06-01 10:01:36 +02:00
norman
9d9f96bb5e
Merge branch '3' of ssh://github.com/netty/netty into 3
2012-06-01 09:26:41 +02:00
norman
7800187433
Make sure calling ExecutionHandler.releaseExternalResource() does not lead to a dead-lock when calling from a ChannelEventRunnable. See #200
2012-06-01 09:25:59 +02:00
Trustin Lee
75f0de5b41
Remove main()s in the ipfilter package
...
- They really should not be there.
2012-05-31 16:08:48 -07:00
Trustin Lee
ec5bd42b18
Fix checkstyle errors
2012-05-31 11:55:13 -07:00
Trustin Lee
b0a2b43379
Overall automated clean up
2012-05-31 11:52:10 -07:00
Trustin Lee
fae19efd73
Apply missing changes from master
2012-05-31 11:50:31 -07:00
Trustin Lee
689093408e
Move HTTP multipart classes to its own package / Clean-up
...
- Add HttpConstants
2012-05-31 11:41:30 -07:00
Trustin Lee
4733db72d3
Add a missing newline at the end of the file
2012-05-31 02:45:27 -07:00
Trustin Lee
3f448f4387
Add missing license header
2012-05-31 02:44:33 -07:00
Trustin Lee
80d45f3a06
Use the default constructor which has been un-deprecated
2012-05-31 02:43:22 -07:00
Trustin Lee
aa9bb38f2e
Moved ProtocolFamily to a separate class
...
- Also renamed it to InternetProtocolFamily to be more specific
- INET and INET6 are now IPv4 and IPv6 which are more straightforward
2012-05-31 02:42:50 -07:00
Trustin Lee
58d2d724e2
Un-deprecate the constructors in NioDatagramChannelFactory
2012-05-31 02:38:13 -07:00
Trustin Lee
7fc2d40a24
Fixed all compiler warnings
2012-05-31 02:23:33 -07:00
Trustin Lee
def46a641e
Fix compiler warnings
2012-05-31 02:23:33 -07:00
Trustin Lee
af81d52f84
Test both SPDY 2 & 3
2012-05-31 02:23:33 -07:00
norman
fca7f89371
Make sure calling ExecutionHandler.releaseExternalResource() does not lead to a dead-lock when calling from a ChannelEventRunnable. See #200
2012-05-31 09:05:03 +02:00
norman
95e305f0e6
Add some comments and javadocs. Related to #368
2012-05-30 13:02:17 +02:00
norman
1cd0aac738
Fix for java.lang.NoClassDefFoundError: java/net/ProtocolFamily under jdk6. See #368
2012-05-30 12:16:29 +02:00
norman
b98448559d
Fix checkstyle
2012-05-29 08:32:29 +02:00
Norman Maurer
a7ab9e0376
StringEncoder must respect the endianness of the used ChannelBufferFactory. See #365
2012-05-28 21:04:02 +02:00
Norman Maurer
80df72843b
Make sure the cumulationbuffer will get handled in the right manner even on Exception. Before this could this could lead to an AssertionFailure. See #364
2012-05-28 14:35:11 +02:00
Trustin Lee
06a6b9b3a9
Remove Selector spinning optimization
...
- Needs more experiments
2012-05-25 09:25:10 -07:00
Norman Maurer
be20b50512
Add a ContextBoundUnmarshallerProvider. See #324
2012-05-24 16:19:09 +02:00
norman
22282cf3e2
Add a ThreadLocalMarshallerProvider and add test cases. See #324
2012-05-24 14:18:12 +02:00
norman
cc97380170
Fix class naming. See #324
2012-05-24 10:23:11 +02:00
norman
1bc52cbd8c
Merge back fix for #360
2012-05-24 08:45:48 +02:00
Norman Maurer
98a8bd25bb
Add testcases for all marshal encoder and decoder. See #324
2012-05-23 21:48:50 +02:00
Norman Maurer
bc308310e0
Rename classes to reflect the real test coverage. See #324
2012-05-23 21:10:12 +02:00
Norman Maurer
6b0a6db3f5
Follow the same pattern as we have in the serialization package. So we have some compatible jboss marshalling impl and one optimized. See #324
2012-05-23 21:04:58 +02:00
Norman Maurer
c5f6af6584
Some refactoring for the jboss marshalling support to allow easier reuse of components. See #324
2012-05-23 20:38:58 +02:00
Norman Maurer
b0ff61cded
Added messages to all IndexOutOfBoundsExceptions. See #359
2012-05-23 17:04:12 +02:00
Norman Maurer
35897027c5
Make sure we handle the sleepTime of 0 correctly in all cases. Thanks to @fredericBregier for review. See #356
2012-05-22 23:09:07 +02:00
Norman Maurer
df82853c11
Only send event upstream once the Ssl handshake was completed successfull. See #358
2012-05-22 22:51:22 +02:00
Norman Maurer
b994cde221
Add workaround to let the sleep work correctly in windows too. See #356
2012-05-22 22:42:02 +02:00
Norman Maurer
2c7c67ef4c
Fix compilation error
2012-05-22 22:34:50 +02:00
norman
17dca37380
Fix more typos..
2012-05-22 14:25:18 +02:00
norman
d7aa5c6d8a
Fix type
2012-05-22 14:16:39 +02:00
norman
9024bc8704
Allow to bind a client channel in a seperate step. This can be useful if you want to pass an object on connect to your handlers. Kind of related to #275
2012-05-22 13:35:20 +02:00
norman
5f28d01507
Make sure the test also work on ipv6 interfaces
2012-05-22 10:03:33 +02:00
Jeff Pinner
706d4d8598
SPDY: add SPDY/3 support
2012-05-21 21:58:56 -07:00
Norman Maurer
8d5f29639c
Fix checkstyle
2012-05-20 17:35:30 +02:00
Norman Maurer
f120e55855
Merge branch '3' of https://github.com/fredericBregier/netty into 3
2012-05-20 16:56:43 +02:00
Norman Maurer
90fe2ac675
Fix checkstyle
2012-05-20 15:09:05 +02:00
Trustin Lee
b79639f710
SelectorUtil.select() spins to get less latency
...
- This seems to boost performance dramatically when the number of
connections is very small.
2012-05-20 18:50:10 +09:00
Frédéric Brégier
5c8c0f2903
remove unecessary super()
2012-05-20 11:33:51 +03:00
Frédéric Brégier
e2facc51ae
Change Executor to Timer from Netty, in reference to Issue #345
2012-05-20 11:29:58 +03:00
Frédéric Brégier
82d8d8192e
Change Executor to Timer from Netty, in reference to Issue #345
2012-05-20 11:27:20 +03:00
Frédéric Brégier
fdd2a9ccfd
Change Executor to Timer from Netty, in reference to Issue #345
2012-05-20 11:26:26 +03:00
Frédéric Brégier
9ba9107267
Change Executor to Timer from Netty, in reference to Issue #345
2012-05-20 11:25:28 +03:00
Frédéric Brégier
f3a7029c0f
Change Executor to Timer from Netty, in reference to Issue #345
2012-05-20 11:24:51 +03:00
Frédéric Brégier
21284c430e
Change Executor to Timer from Netty, in reference to Issue #345
2012-05-20 11:24:12 +03:00
Norman Maurer
4bf2257d1a
Try to add a testcase to reproduce #343
2012-05-19 20:51:25 +02:00
Norman Maurer
33df31d7b7
Fix formatting
2012-05-19 20:39:00 +02:00
Norman Maurer
a2b3fc8367
Remove @Override annotation from interface implements
2012-05-19 20:34:24 +02:00
Frédéric Brégier
16e271325d
Proposal for fix related to 1rst issue of #345
...
Thread.sleep(wait) => Thread.sleep((wait/10)*10)
(see http://www.javamex.com/tutorials/threads/sleep_issues.shtml )
2012-05-19 18:18:31 +03:00
Frédéric Brégier
d2cf217378
Proposal for fix related to 1rst issue of #345
...
Thread.sleep(wait) => Thread.sleep((wait/10)*10)
(see http://www.javamex.com/tutorials/threads/sleep_issues.shtml )
2012-05-19 18:16:59 +03:00
Norman Maurer
2a05afd418
Remove @Override annotation from interface implements
2012-05-18 22:16:17 +02:00
Norman Maurer
ce391d36f4
Merge branch '3' of https://github.com/blucas/netty into 3
2012-05-18 21:29:28 +02:00
Norman Maurer
17cdc98499
Make sure setHandshakeComplete() is called before the handler is replaced. See #332
2012-05-18 21:27:19 +02:00
blucas
c052f90410
#337 back-port ipfilter and traffic to 3 branch (Fix test package method override)
2012-05-18 18:00:16 +01:00
blucas
31eb8595be
#337 back-port ipfilter and traffic to 3 branch (Fix test package)
2012-05-18 17:57:30 +01:00
blucas
98b06c6237
#337 back-port ipfilter and traffic to 3 branch
2012-05-18 17:33:19 +01:00
norman
288ed13b6b
Add a replace(..) method to FrameDecoder and also to ReplayDecoder as it now extend FrameDecoder. This also fix #332 .
2012-05-18 11:21:29 +02:00
norman
e841e85bdc
Make all methods of SslBufferPool public so a subclass can be placed in another package. See #336
2012-05-18 08:04:25 +02:00
norman
231dc284d7
Use the correct ChannlBufferFactory when creating new ChannelBuffers. See #335
2012-05-18 07:43:43 +02:00
norman
ab5939e205
Remove silly import, sorry. See #329
2012-05-18 07:40:24 +02:00
norman
b76c996298
Make sure SslHandler also works if SslBufferPool use non heap ByteBuffers. See #329
2012-05-18 07:38:38 +02:00
norman
09e86c9c9b
Fix checkstyle
2012-05-18 07:36:38 +02:00
Jeff Pinner
ba76d5b515
SPDY: fix for mozilla firefox bug 754766
2012-05-17 11:36:57 +09:00
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