avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Baldassari <jbaldass...@gmail.com>
Subject Re: NettyServer not setting TCP keep-alive leading to leaked connections
Date Thu, 01 Mar 2012 19:27:20 GMT
Hi Frank,

I read the thread you referenced.  So the root cause of the problem is that
the firewall is terminating the connection without doing a proper TCP
teardown, right?

This probably isn't a very common problem, but it seems like enabling TCP
keepalives in NettyServer (and on the client side as well) is a good idea
in general.  Are you sure that keepalives aren't enabled by default in
Netty?  I searched for a few minutes but couldn't find any documentation on
it.  Have you actually seen this socket leak with Avro when behind a

We might want to also consider allowing the ServerBootstrap to be passed
into NettyServer via constructor or setter method.  That way these types of
settings could be tweaked without any Avro code changes.

Would you mind creating an issue for this?


On Wed, Feb 29, 2012 at 3:20 PM, Frank Grimes <frankgrimes97@gmail.com>wrote:

> Hi All,
> I think that NettyServer needs to be changed to include the following line:
> bootstrap.setOption("child.keepAlive", true);
> Otherwise, it'll be susceptible to the following problem:
> http://mail-archives.apache.org/mod_mbox/incubator-flume-user/201201.mbox/<716CD793-6CBC-4D08-B984-97DAEE71D06A@yahoo.com>
> Not sure if HttpServer is also affected by this because I haven't yet dug
> into the Jetty code to see if it sets TCP keep-alive on its sockets.
> Let me know if I should file a JIRA and/or provide a patch...
> Regards,
> Frank Grimes

View raw message