Skip to content
New issue

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

You should do a WSACleanup for each WSAStartup #25

Closed
danielgindi opened this issue Aug 31, 2014 · 9 comments
Closed

You should do a WSACleanup for each WSAStartup #25

danielgindi opened this issue Aug 31, 2014 · 9 comments

Comments

@danielgindi
Copy link
Contributor

That's by definition of Winsock...

@bk138
Copy link
Member

bk138 commented Aug 31, 2014

patches welcome, as always ;-)

@dscho
Copy link
Contributor

dscho commented Sep 2, 2014

You should do a WSACleanup for each WSAStartup

It might be a good idea to spend a little bit of effort to make a bug report sound different from the equivalent of throwing left-over bones to a dog. Nobody likes to be treated like that dog, and I, for one, am no exception.

An excellent way to make up for this unfortunate impression would be to provide the patches @bk138 asked for, indeed.

@dscho dscho closed this as completed Sep 2, 2014
@danielgindi
Copy link
Contributor Author

Of course, as soon as I have the time I will make a patch.
I wrote that Issue with the understanding that the people who wrote this library, and make a call to WSAStartup, read the documentation about that function and noticed that there's a WSACleanup.
It shouldn't be too hard to understand this from the title of the Issue.
Unless, of course, if you are not really familiar with the Windows platform, or Winsock, and that's a whole other story.

@bk138
Copy link
Member

bk138 commented Sep 2, 2014

Windows was not really the premier platform the lib was developed on/for, so the implementation is not as good as for POSIX. Thanks for your patches!

@bk138 bk138 reopened this Sep 2, 2014
@dscho
Copy link
Contributor

dscho commented Sep 2, 2014

@bk138 I actually closed this with the intention of waiting for @danielgindi's pull request...

@bk138
Copy link
Member

bk138 commented Sep 2, 2014

@dscho Sry, my rationale was that the issue is still existing anyway. For the record, I'd keep it open unless it's fixed.

@bk138 bk138 added this to the Release 0.9.13 milestone Nov 9, 2018
@bk138
Copy link
Member

bk138 commented Jan 31, 2020

void rfbInitServer(rfbScreenInfoPtr screen)

@bk138
Copy link
Member

bk138 commented Jan 31, 2020

static int initSockets() {

@bk138 bk138 self-assigned this Jan 31, 2020
@bk138 bk138 closed this as completed in c8d5bf9 Feb 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants