Skip to content

Error: Underlying transport protocol #640

@jagranados-dev

Description

@jagranados-dev

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions