RE: Help needed: Java Socket and close detection

2016-07-15 Thread Langer, Christoph
k.java.net; nio-...@openjdk.java.net > Subject: Re: Help needed: Java Socket and close detection > > Some further reading... > > https://docs.oracle.com/javase/8/docs/technotes/guides/net/articles/connectio > n_release.html > > -Chris. > > > On 13 Jul 2016, at 21:37, Dmitry S

Re: Help needed: Java Socket and close detection

2016-07-14 Thread Chris Hegarty
Some further reading… https://docs.oracle.com/javase/8/docs/technotes/guides/net/articles/connection_release.html -Chris. > On 13 Jul 2016, at 21:37, Dmitry Samersoff > wrote: > > Christoph, > > My $0.2 > > Typically you see RST packet when the data come to a *closed* socket. > You should

Re: Help needed: Java Socket and close detection

2016-07-13 Thread Dmitry Samersoff
Christoph, My $0.2 Typically you see RST packet when the data come to a *closed* socket. You shouldn't get RST if client/server communication shutdown properly. Also balancer may take a care about connection shutdown (it needs to update internal tables) so it's possible that you never get RST af

Re: Help needed: Java Socket and close detection

2016-07-13 Thread David M. Lloyd
I don't think this really makes sense as a place to ask these questions, but I can probably answer them to an extent at least. When a TCP connection is closed normally, the side (we'll call it A) which initiates the close (usually by shutting down the write half of the socket) sends a FIN and

Help needed: Java Socket and close detection

2016-07-13 Thread Langer, Christoph
Hi folks, I have a question to the experts - regarding an issue that was reported to me by a customer. In the customer scenario they are running a Servlet engine and the Servlet is constantly sending data to a browser client. When the browser client is closed, the server does not get a notific