hstaudacher / osgi-jax-rs-connector

An OSGi - JAX-RS 2.0 Connector, software repository available on the link below
http://hstaudacher.github.io/osgi-jax-rs-connector
Other
190 stars 98 forks source link

Server sockets stuck in FIN_WAIT2 #155

Open col-panic opened 8 years ago

col-panic commented 8 years ago

Jax-Rs works great, thanks a lot for your work :)

Now, however, using it in production I see a lot of open sockets on my linux server in state FIN_WAIT2. We have a task running every 10 seconds, and it seems, that the connection is not getting properly closed by the client, which slowly eats up the available ports, although linux frees the FIN_WAIT2 after 60 seconds.

FIN-WAIT-2: The remote end-point has sent an acknowledgement for the previously sent connection termination request. The local end-point waits for an active connection termination request from the remote end-point.

We use both your client and server and I don't know on how to request a proper termination request from the client. This problem is documented for other solutions as well

https://github.com/spray/spray/issues/1058

Any hint on what to do here? Thanks!