On Thursday 05 February 2015 15:47:13 Sven Eckelmann wrote:
The socket is still using one file descriptor of the process when the connection fails. This fd leak is non-problematic in the current client process code because the client would be closed in this situation anyway and therefore the socket would be closed when the process is stopped. But people using this as example code may not stop the process on this error. The unclosed and unused sockets would accumulate and the process would hit the limit for open file descriptors.
Signed-off-by: Sven Eckelmann sven@narfation.org
applied in revision 26a7b5e.
Thanks! Simon