I have a little problem with handling of tcp connections for a http server:
If a client connects to the http server a TcpConnection is created. If the client disconnects the PeerClosed object is received in the TcpConnection. But the TcpConnection is not closed because the ‘keepOpenOnPeerClosed’ is set to true in the Register message by the TcpStreamLogic (located in TcpStages.scala). Therefore the connection will only be closed when the “idle-timeout” is reached. When the limit of allowed TcpConnections is reached the tcp socket used for the http connections is closed leading to a dead http server.
Is this a bug or do I miss something?
Thank you very much.