Commit Graph

1960 Commits

Author SHA1 Message Date
iainmcgin
12d2c8ad2e NETTY-246: adding implementation to netty trunk for the 4.0.0 release. In order to get the tests to pass,
I had to change the surefire fork policy from "never" to "once", as it seems the classloader settings used
by the maven process were preventing jmock from mocking package private interfaces.
2011-04-18 17:44:54 +09:00
Trustin Lee
4aef19e947 Updated the initial Javadoc written by Veebs w/ a little formatting 2011-04-18 17:35:04 +09:00
Veebs
eb6ec29b14 Fixed SimpleDateFormat bug. Should use new SimpleDateFormat(HTTP_DATE_FORMAT, Locale.US), otherwise when running on for example Japanese OS, the resulting date would contains Japanese characters, and the browser would not be able to parse! 2011-04-18 17:23:46 +09:00
Veebs
a85249ced8 Added handing of HTTP headers with respect to browser caching and cache validation. 2011-04-18 17:23:13 +09:00
Will
e00e9bb8fa fix typo in exception message 2011-04-18 17:00:56 +09:00
Daniel Bevenius
98db0d3908 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:03 +09:00
Trustin Lee
b26f13d3b9 Fixed compilation and removed unused fields 2011-04-04 18:21:47 +09:00
Trustin Lee
16750ffc28 NETTY-394 SslHandler does not work with a little endian buffer
Added SslHandler.getShort() which replaces ChannelBuffer.getShort() calls
2011-04-02 03:27:00 +09:00
Trustin Lee
6f7e2606a1 Merge branch 'master' of github.com:trustin/netty 2011-04-02 03:13:42 +09:00
Trustin Lee
94ac810f2e NETTY-393: SslHandler infinite loop on Apache Harmony with large payload
Increased the SSL buffer size by 1024 as advised
2011-04-02 03:08:24 +09:00
Trustin Lee
10e2fc44e5 Fixed NETTY-336 Fine-grained control over thread renaming
Fixed exception message
2011-03-29 16:15:11 +09:00
Trustin Lee
89de2e4b95 Fixed NETTY-336 Fine-grained control over thread renaming
NamedThreadFactory now can set the daemon flag and the thread priority
2011-03-29 16:12:55 +09:00
Trustin Lee
83bc3e794a Fixed NETTY-336 Fine-grained control over thread renaming
Added NamedThreadFactory so that a user can customize I/O thread names easily
2011-03-29 16:00:53 +09:00
Trustin Lee
d1919d0e14 Fixed NETTY-336 Fine-grained control over thread renaming
Removed ThreadNameDeterminer and ThreadRenamingRunnable completely and let user specify the Executor with one's own ThreadFactory
2011-03-29 15:29:52 +09:00
Trustin Lee
f3899e8d58 Fixed an infinite loop on a certain NIO impl 2011-03-25 02:27:20 +09:00
Trustin Lee
6707aa751c Fixed a typo 2011-03-09 00:20:47 +09:00
Trustin Lee
ec6b34a307 Updated Javadoc 2011-03-03 02:02:01 +09:00
Trustin Lee
0382538548 Removed unused ChunkedInput.hasNextChunk() 2011-03-03 01:56:08 +09:00
Trustin Lee
98b2b6d8dc Do not write an empty buffer unnecessarily when nextChunk() returned
null
2011-03-03 01:32:27 +09:00
Trustin Lee
a5e9f633ef Better variable naming / Fixed potential stall 2011-03-02 19:58:28 +09:00
Trustin Lee
4144b43735 NETTY-386 Support for serial connections using RXTX
Contributed by Daniel Bimschas and Dennis Pfisterer
Initial import after fixing compiler warnings and removing log
messages and shut-down hooks
2011-02-24 17:26:18 +09:00
Trustin Lee
7ab5ec5f74 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:32 +09:00
Trustin Lee
429d3987dc 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:49 +09:00
Trustin Lee
195df8bec4 Fixed wrong comment 2011-02-07 20:05:37 +09:00
Trustin Lee
420431cabb Added missing @Overrides annotations 2011-02-07 20:03:40 +09:00
Trustin Lee
4d6581fe3d * Fixed a documentation error in ChannelBuffer javadoc
* Clearly specified that FrameDecoder is an implementation of ChannelHandler
2011-02-07 19:58:48 +09:00
Trustin Lee
eb02c57619 Fixed Javadoc error 2011-02-01 13:43:23 +09:00
Trustin Lee
d786a38139 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:43:12 +09:00
Trustin Lee
4c9b4329f2 Fixed issue: NETTY-372 NullPointerException in ChunkedWriteHandler 2011-02-01 12:20:43 +09:00
Trustin Lee
a5aef71218 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:45:17 +09:00
Trustin Lee
d8ff180610 NioDatagramWorker should reject the write attempt on an unbound
socket, raising NotYetBoundException.
2011-02-01 11:45:09 +09:00
Trustin Lee
dfe960855f Fixed issue: NETTY-380 releaseExternalResources() hang indefinitely
when called from a handler

* Replaced IoWorkerRunnable with DeadLockProofWorker
* ExecutorUtil now checks dead lock
2011-02-01 10:56:59 +09:00
Trustin Lee
8eb2d8eb43 ChannelGroup.write() should not write to a server channel 2011-01-31 15:25:22 +09:00
Trustin Lee
ad320f6cae 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:01 +09:00
Trustin Lee
23f33629ca 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:56:38 +09:00
Trustin Lee
9f55834823 Fixed incorrect usage of ByteBuffer.arrayOffset()
* NETTY-368 Wrappedbuffer does not honour posiiton()
* and similar mistakes found during a review
2011-01-12 19:23:50 +09:00
Trustin Lee
d7c27d1b71 Fixed Javadoc warnings 2011-01-12 19:11:32 +09:00
Trustin Lee
6bfd2d6cec 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:34 +09:00
Trustin Lee
8ad04dc6ca Fixed issue: NETTY-377 messageReceived could happen before
channelConnected when using local channels

More precise LocalChannel state management to avoid incorrect event
order
2011-01-12 18:03:03 +09:00
Trustin Lee
7866282d52 Fixed indentation 2011-01-04 14:53:24 +09:00
iainmcgin
4f9e6dcb13 Fix for NETTY-370 - documentation updated to reflect the correct behaviour of
high / low water marks on the interest ops of nio channels.
2011-01-04 14:50:49 +09:00
Benoit Sigoure
1f1b8d8325 Add a new faster, memory efficient URL decoder.
Query string parameters need to be decoded as per RFC 3986, Section 2.
The implementation of the URLDecoder in the JDK is slow because it takes
long and inefficient code paths, and it generates a lot more garbage
than necessary.  This decoder is about 2x faster and doesn't allocate
any memory in the easy case where the decoded string is unchanged.
When the string needs to be changed, only one buffer is allocated for
the decoded string.
2011-01-04 14:44:36 +09:00
Bruce Mitchener
3d85d56631 Correct variable name in code samples. 2011-01-04 14:38:57 +09:00
Trustin Lee
1ffb1aea75 NETTY-364 Application level IP filter
* Merged Frederic's ipfilter patch (needs some review and documentation)
2010-11-12 10:20:03 +09:00
Trustin Lee
34b181236a NETTY-363 Traffic shaper
* Merged Frederic's traffic shaper patch (needs some review and documentation)
2010-11-12 10:16:51 +09:00
Trustin Lee
c0c9f689f6 NETTY-333 Support File Uploading in Netty HTTP Server
* Merged the Frederic's HttpPost patch (still needs some design and naming review + documentation)
2010-11-12 09:49:43 +09:00
Trustin Lee
0dbdbcdb96 Added @Override annotations which were disallowed in Java 5 but not anymore in Java 6. 2010-11-12 09:45:39 +09:00
Trustin Lee
f700f9b14f Fixed misleading Javadoc in ReplayingDecoder 2010-11-09 05:35:24 +00:00
Trustin Lee
1f2285f57e Fixed issue: NETTY-360 Changing Channel.interestOps sometimes does not work under heavy write traffic in NIO transport
* Made sure all setRawInterestOps() calls are protected by interestOpsLock
Fixed a race condition in the HexDumpProxy example
2010-10-24 18:24:20 +00:00
Trustin Lee
f13e7053fe Fixed an OOME in the HexDumpProxy example 2010-10-23 11:38:34 +00:00