Go to file
Trustin Lee dc009b2c2c Replace UniqueName with Constant and ConstantPool
- Proposed fix for #1824

UniqueName and its subtypes do not allow getting the previously registered instance.  For example, let's assume that a user is running his/her application in an OSGi container with Netty bundles and his server bundle.  Whenever the server bundle is reloaded, the server will try to create a new AttributeKey instance with the same name.  However, Netty bundles were not reloaded at all, so AttributeKey will complain that the name is taken already (by the previously loaded bundle.)

To fix this problem:

- Replaced UniqueName with Constant, AbstractConstant, and ConstantPool.  Better name and better design.

- Sctp/Udt/RxtxChannelOption is not a ChannelOption anymore.  They are just constant providers and ChannelOption is final now.  It's because caching anything that's from outside of netty-transport will lead to ClassCastException on reload, because ChannelOption's constant pool will keep all option objects for reuse.

- Signal implements Constant because we can't ensure its uniqueness anymore by relying on the exception raised by UniqueName's constructor.
2013-10-25 19:21:53 +09:00
all Bump up version to 4.1.0.Alpha1-SNAPSHOT 2013-08-26 15:18:18 +02:00
buffer [#1943] Unpooled.copiedBuffer(ByteBuf pooled) should always return unpooled ByteBuf 2013-10-22 20:20:04 +02:00
codec Replace UniqueName with Constant and ConstantPool 2013-10-25 19:21:53 +09:00
codec-http Replace UniqueName with Constant and ConstantPool 2013-10-25 19:21:53 +09:00
codec-socks Bump up version to 4.1.0.Alpha1-SNAPSHOT 2013-08-26 15:18:18 +02:00
common Replace UniqueName with Constant and ConstantPool 2013-10-25 19:21:53 +09:00
example minor gc optimization: better DefaultHttpHeaders.iterator() 2013-10-11 20:34:27 +02:00
handler Replace UniqueName with Constant and ConstantPool 2013-10-25 19:21:53 +09:00
license Add back jzlib license file and notice 2013-02-21 14:00:59 -08:00
microbench Bump up version to 4.1.0.Alpha1-SNAPSHOT 2013-08-26 15:18:18 +02:00
tarball Bump up version to 4.1.0.Alpha1-SNAPSHOT 2013-08-26 15:18:18 +02:00
testsuite Run tests with Pooled and Unpooled allocator 2013-10-16 11:52:02 +02:00
testsuite-osgi Bump up version to 4.1.0.Alpha1-SNAPSHOT 2013-08-26 15:18:18 +02:00
transport Replace UniqueName with Constant and ConstantPool 2013-10-25 19:21:53 +09:00
transport-rxtx Replace UniqueName with Constant and ConstantPool 2013-10-25 19:21:53 +09:00
transport-sctp Replace UniqueName with Constant and ConstantPool 2013-10-25 19:21:53 +09:00
transport-udt Replace UniqueName with Constant and ConstantPool 2013-10-25 19:21:53 +09:00
.fbfilter.xml Update license headers 2012-06-04 13:31:44 -07:00
.fbprefs Updated Find Bugs configuration 2009-03-04 10:33:09 +00:00
.gitignore Allow per-write promises and disallow promises on flush() 2013-07-11 00:49:48 +09:00
.travis.yml Travis CI branch whitelisting 2013-03-11 09:55:43 +09:00
LICENSE.txt Relicensed to Apache License v2 2009-08-28 07:15:49 +00:00
NOTICE.txt Add back jzlib license file and notice 2013-02-21 14:00:59 -08:00
pom.xml Set memory for compiler as otherwise it sometimes fails here 2013-09-10 18:39:02 +02:00
README.md Fix broken url 2013-02-26 16:29:24 -08: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