Go to file
Norman Maurer f2eb106f1e Ensure we only add OpenSslEngine to the OpenSslEngineMap when handshake is started
Motivation:

We need to ensure we only add the OpenSslEngine to the OpenSslEngineMap when the handshake is started as otherwise we may produce a memory leak when the OpenSslEngine is created but not actually used. This can for example happen if we encounter a connection refused from the remote peer. In this case we will never remove the OpenSslEngine from the OpenSslEngineMap and so it will never be collected (as we hold a reference). This has as affect that the finalizer will never be run as well.

Modifications:

- Lazy add the OpenSslEngine to the OpenSslEngineMap to elimate possible leak.
- Call OpenSslEngine.shutdown() when SslHandler is removed from the ChannelPipeline to free memory asap in all cases.

Result:

No more memory leak with OpenSslEngine if connection is refused.
2016-01-05 11:26:24 +01:00
all Update Netty to latest netty-tcnative 2015-09-18 12:01:36 -07:00
buffer Move Hex dump related util from ByteBufUtil to inner class 2015-12-11 19:47:37 +01:00
codec Use ByteBuf.*LE methods for write and read LE 2015-12-10 09:34:37 +01:00
codec-dns Provide more control over DnsNameResolver.query() / Add NameResolver.resolveAll() 2015-08-18 17:41:38 +09:00
codec-haproxy Add ProtocolDetectionResult and use it in HAProxyMessageDecoder for allow detect HAProxy protocol. 2015-06-23 08:59:16 +02:00
codec-http Fix compile error introduced by e25a29a180 2015-12-11 08:08:52 +01:00
codec-http2 Allow to set Http2HeaderEncoder.SensitivityDetector in the Http2ConnectionHandler 2015-12-11 07:59:38 +01:00
codec-memcache Fix a buffer leak in BinaryMemcacheEncoderTest 2015-08-29 11:55:33 +09:00
codec-mqtt Fix code styles on MQTT codec classes 2015-08-31 08:25:18 +02:00
codec-socks [maven-release-plugin] prepare for next development iteration 2015-03-03 08:30:59 -05:00
codec-stomp HTTP/2 Headers Type Updates 2015-10-30 14:33:48 -07:00
codec-xml [maven-release-plugin] prepare for next development iteration 2015-03-03 08:30:59 -05:00
common Moving KObjectHashMapTest to propert directory 2015-12-15 09:49:07 +01:00
example Remove HttpHeadersUtil 2015-11-09 12:03:32 -08:00
handler Ensure we only add OpenSslEngine to the OpenSslEngineMap when handshake is started 2016-01-05 11:26:24 +01:00
handler-proxy Extract SocketAdress logic from NameResolver 2015-12-14 14:58:49 +01:00
license [#4331] Helper methods to get charset from Content-Type header of HttpMessage 2015-11-19 15:50:16 -08:00
microbench DefaultChannelConfig maxMessagesPerRead default not always set 2015-11-25 15:14:24 -08:00
resolver Extract SocketAdress logic from NameResolver 2015-12-14 14:58:49 +01:00
resolver-dns Extract SocketAdress logic from NameResolver 2015-12-14 14:58:49 +01:00
tarball [maven-release-plugin] prepare for next development iteration 2015-03-03 08:30:59 -05:00
testsuite Remove HttpHeadersUtil 2015-11-09 12:03:32 -08:00
testsuite-osgi Add a property to disable osgi testsuite run 2015-08-13 09:52:46 +09:00
transport Extract SocketAdress logic from NameResolver 2015-12-14 14:58:49 +01:00
transport-native-epoll [#4449] Remove registered events from eventloop before close 2015-12-13 10:15:19 +01:00
transport-rxtx Use OneTimeTask where possible to reduce object creation 2015-11-20 14:41:41 -08:00
transport-sctp Use OneTimeTask where possible to reduce object creation 2015-11-20 14:41:41 -08:00
transport-udt a48e5c7347 merge build failure 2015-08-06 10:28:39 -07:00
.fbprefs Updated Find Bugs configuration 2009-03-04 10:33:09 +00:00
.gitignore Exclude bin directory from git Motivation: 2014-08-27 06:33:22 +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:17:58 +09:00
LICENSE.txt Relicensed to Apache License v2 2009-08-28 07:15:49 +00:00
NOTICE.txt [#4331] Helper methods to get charset from Content-Type header of HttpMessage 2015-11-19 15:50:16 -08:00
README.md Fix the 'branches to look' section 2015-10-27 13:59:26 +01:00
pom.xml update pom due to alpn provided 2015-11-23 12:53:12 -08:00
run-example.sh Add HTTP/2 Netty tiles example 2015-05-18 14:17:48 -07:00

README.md

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

The 'master' branch is where the development of the latest major version lives on. The development of all other 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.