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

Fix disconnect issue on Windows #846

Merged
merged 3 commits into from Jun 7, 2019

Conversation

josephnoir
Copy link
Member

WSAGetLastError should be invoked right after Windows sockets functions. Addresses the issue raised in #837.

WSAGetLastError should be invoked right after Windows sockets
functions.
@josephnoir josephnoir requested a review from Neverlord May 31, 2019 14:04
@josephnoir josephnoir self-assigned this May 31, 2019
libcaf_io/src/tcp.cpp Outdated Show resolved Hide resolved
CAF_LOG_DEBUG(CAF_ARG(len) << CAF_ARG(fd) << CAF_ARG(sres));
if (is_error(sres, true))
if (is_error(sres, true)) {
CAF_LOG_ERROR("send failed:" << last_socket_error_as_string());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above.

libcaf_io/src/udp.cpp Outdated Show resolved Hide resolved
libcaf_io/src/udp.cpp Outdated Show resolved Hide resolved
libcaf_openssl/src/middleman_actor.cpp Outdated Show resolved Hide resolved
@Neverlord
Copy link
Member

@v2nero would you mind double-checking whether this PR fixes the issues you've reported?

Copy link
Member

@Neverlord Neverlord left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. 👍

@v2nero
Copy link

v2nero commented Jun 2, 2019

@v2nero would you mind double-checking whether this PR fixes the issues you've reported?

simple_broker works with CAF_LOG_LEVEL=TRACE with your changes. This is the only case I tested before.

@Neverlord
Copy link
Member

Thanks for taking the time and testing the patch!

@Neverlord Neverlord merged commit f4c7eba into master Jun 7, 2019
@Neverlord Neverlord deleted the topic/fix-windows-logging-disconnect branch June 7, 2019 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants