-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
Description
Hi,
I am having a singular error with this library. Sometimes, when my program starts, the websocket server crash trying to listen on a port. The error is: "Underlying transport protocol". This error happens randomly, but always after close and open again the websocket server.
When my websocket starts, this code is executed:
_server.set_reuse_addr ( true );
_server.listen ( port );
// ...
_server.run ();
// ...
And when the program finishes, this code is executed:
_server.stop_listening ();
// close connections...
_server.stop ();
I thought that the error could be listen on a locked port, but the flag "reuseaddr" is enabled, and only my websocket server listen on that port...
Any idea?
Regards,
J. A.