Go to file
buchgr d79e5c594d Fix write watermarks comparison to use less than and greater than.
Motivation:

The API documentation in ChannelConfig states that a a channel is writable,
if the number of pending bytes is below the low watermark and a
channel is not writable, if the number of pending bytes exceeds the high
watermark.

Therefore, we should use < operators instead of <= as well as > instead of >=.

Using <= and >= is also problematic, if the low watermark is equal to the high watermark,
as then a channel could be both writable and unwritable with the same number of pending
bytes (depending on whether remove() or addMessage() is called first).

The use of <= and >= was introduced in PR https://github.com/netty/netty/pull/3036, but
I don't understand why, as there doesn't seem to have been any discussion around that.

Modifications:

Use < and > operators instead of <= and >=.

Result:

High and low watermarks are treated as stated in the API docs.
2016-08-24 15:58:13 +02:00
all [maven-release-plugin] prepare for next development iteration 2016-07-27 10:47:03 +02:00
buffer Fix compile error introduced by d58dec8862 2016-08-23 10:13:36 +02:00
codec [maven-release-plugin] prepare for next development iteration 2016-07-27 10:47:03 +02:00
codec-haproxy Removed custom split method as it is not effective anymore. 2016-08-01 21:53:11 +02:00
codec-http Cookie name must be case sensitive 2016-08-23 09:45:26 +02:00
codec-socks [maven-release-plugin] prepare for next development iteration 2016-07-27 10:47:03 +02:00
common [#5720] Static initializers can cause deadlock 2016-08-23 09:58:48 +02:00
example Support Unicode filenames and spaces in directory listing 2016-08-16 09:19:19 +02:00
handler Ensure SslHandler.close(...) will not throw exception if flush of pending messages fails 2016-08-24 07:33:40 +02:00
license Let PoolThreadCache work even if allocation and deallocation Thread are different 2015-05-27 14:35:22 +02:00
microbench [maven-release-plugin] prepare for next development iteration 2016-07-27 10:47:03 +02:00
tarball [maven-release-plugin] prepare for next development iteration 2016-07-27 10:47:03 +02:00
testsuite [#5639] Ensure fireChannelActive() is also called if Channel is closed in connect promise. 2016-08-24 08:48:02 +02:00
testsuite-osgi [maven-release-plugin] prepare for next development iteration 2016-07-27 10:47:03 +02:00
transport Fix write watermarks comparison to use less than and greater than. 2016-08-24 15:58:13 +02:00
transport-native-epoll [#5639] Ensure fireChannelActive() is also called if Channel is closed in connect promise. 2016-08-24 08:48:02 +02:00
transport-rxtx [maven-release-plugin] prepare for next development iteration 2016-07-27 10:47:03 +02:00
transport-sctp [#4204] Broken support of SCTP_INIT_MAXSTREAMS in *SctpServerChannel 2016-08-05 18:33:10 +02:00
transport-udt [maven-release-plugin] prepare for next development iteration 2016-07-27 10:47:03 +02:00
.fbprefs Updated Find Bugs configuration 2009-03-04 10:33:09 +00:00
.gitignore Use shaded dependency on JCTools instead of copy and paste 2016-06-10 13:53:28 +02:00
.travis.yml Travis CI branch whitelisting 2013-03-11 09:55:43 +09:00
CONTRIBUTING.md Move the pull request guide to the developer guide 2014-03-12 13:18:14 +09:00
LICENSE.txt Relicensed to Apache License v2 2009-08-28 07:15:49 +00:00
NOTICE.txt Let PoolThreadCache work even if allocation and deallocation Thread are different 2015-05-27 14:35:22 +02:00
pom.xml Use NIO methods when using Java7+ in the NIO transport 2016-08-24 07:40:32 +02:00
README.md Updating Branches to look section to match the current branching structure of the project 2016-03-10 22:09:30 +01:00
run-example.sh Add logLevel property to enable different log levels for the examples. 2014-11-21 10:48:13 +09:00

Netty Project

Netty is an asynchronous event-driven network application framework for rapid development of maintainable high performance protocol servers & clients.

How to build

For the detailed information about building and developing Netty, please visit the developer guide. This page only gives very basic information.

You require the following to build Netty:

Note that this is build-time requirement. JDK 5 (for 3.x) or 6 (for 4.0+) is enough to run your Netty-based application.

Branches to look

Development of all versions takes place in each branch whose name is identical to <majorVersion>.<minorVersion>. For example, the development of 3.9 and 4.0 resides in the branch '3.9' and the branch '4.0' respectively.