We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In CSimpleSocket::Initialize the m_hWSAData is initialised under Windows using WSAStartup. According to MSDN, each call to WSAStartup must have a matching call to WSACleanup. However, the entire library is lacking such a call: https://docs.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-wsastartup
CSimpleSocket::Initialize
m_hWSAData
WSAStartup.
WSAStartup
WSACleanup.
When frequently creating sockets, sending data, closing and destroying sockets, this might cause resource leaks.
Is this just an oversight? Best regards
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In
CSimpleSocket::Initialize
them_hWSAData
is initialised under Windows usingWSAStartup.
According to MSDN, each call to
WSAStartup
must have a matching call toWSACleanup.
However, the entire library is lacking such a call: https://docs.microsoft.com/en-us/windows/win32/api/winsock/nf-winsock-wsastartupWhen frequently creating sockets, sending data, closing and destroying sockets, this might cause resource leaks.
Is this just an oversight?
Best regards
The text was updated successfully, but these errors were encountered: