Skip to content

Conversation

@aditmak
Copy link

@aditmak aditmak commented Feb 21, 2023

I am using the uWebsocket application. When I call the application's listen function to open the port and begin listening it failed.
Because the application failed to listen, it closes the socket and exits gracefully. So, if there is an error while opening the port, the errno variable is updated with the error code then the close socket function is called and it updates the errno, causing the error information from the listening socket failure to be lost.
By preserving the errno after the close socket function, the real error can be determined.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant