Commit Graph

3065 Commits

Author SHA1 Message Date
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
norman
37d10f3ec3 [maven-release-plugin] prepare for next development iteration 2012-08-16 11:00:57 +02:00
norman
22433f9841 [maven-release-plugin] prepare release netty-3.5.4.Final 2012-08-16 11:00:45 +02:00
Norman Maurer
9ef39ac7cf Merge pull request #526 from jamestyrrell/3
[#494] Automatically adding chunked encoding header breaks streaming
2012-08-16 01:30:56 -07: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
Norman Maurer
f1ba4f23a6 Merge pull request #513 from CruzBishop/3-fix-510
3: Fixed a typo in ObjectEchoClientHandler
2012-08-14 03:00:25 -07: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 Maurer
ce4cf5e619 Merge pull request #495 from CruzBishop/intellij-in-gitignore
3: Adds the IntelliJ project directory to .gitignore.
2012-08-08 23:05:09 -07: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
Norman Maurer
02f53c2b12 Merge pull request #499 from CruzBishop/3-perf
Replaces two manual array copies
2012-08-08 22:28:09 -07: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
Cruz Julian Bishop
9e4118cd4a Adds the IntelliJ project directory to .gitignore.
I'm trying to move away from Netbeans, so I thought
I should ignore this instead of accidentally adding it later on

Signed-off-by: Cruz Julian Bishop <cruzjbishop@gmail.com>
2012-08-09 08:11:17 +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 Maurer
7dcae71b09 Merge pull request #481 from netty/receive_buffer
Optimize ByteBuffer usage for receiving bytes from the channel. See #480
2012-07-31 10:55:04 -07: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