google-code-export / jwebsocket

Automatically exported from code.google.com/p/jwebsocket
1 stars 3 forks source link

Java Client does not stop threads for TCP Client #126

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
if you connect to the jWebsocket Server using the Java Client and simply 
re-connect w/o disconnecting explicitly before. The thread on the server keeps 
running. This will overload the server one day.

Original issue reported on code.google.com by fivefeetfurther@gmail.com on 6 Jun 2011 at 12:35

GoogleCodeExporter commented 9 years ago
We should set the timeout defaul to some value other than zero.
A first fix has been applied with 1.0a11 where the connection is explicitely 
closed. This covers an intentional close fro the client but not an accidental 
one e.g. by a network failure.

Original comment by fivefeetfurther@gmail.com on 6 Jun 2011 at 1:03