Set the socket option SO_LINGER for the client socket in accept_connection()