-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Fixes issue #3891 #3923
Fixes issue #3891 #3923
Conversation
Argh! Can someone give me a tip on how to git rid of all the extra commits? I read the manuals for git, but it didn't make any sense to me. |
Thanks!
Can you add a test for this? I realize the tests for this module are difficult, using a bunch of conditional compilation, but it's important. Note that every network test needs to use a different port number (or else they will fail randomly by failing to bind the port) and the ones in use aren't obvious. I see whitespace at the end of lines in this patch which will cause 'make check' to fail. |
Thanks @brson for the suggestions. |
This fixes rust-lang#3891. Also removed debug!(...) statement from socket destructor which causes a crash when the logging level is set to debug.
Also added test for rust-lang#3891.
@brson I've fixed the whitespace issues now, and also added a test for the change. I couldn't write a test for the crash, which would only occur with debug level logging turned on - I hope that this is okay though. |
@am0d that's great! thank you. |
Refactor ``return_read_bytes_and_count`` and ``return_written_byte_count_or_error`` Fixes rust-lang#3904 This PR - separate the error logic from ``return_read_bytes_and_count`` and ``return_written_byte_count_or_error`` into a helper function ``set_last_error_and_return``.
There should be just one commit in here - if not, I'll try to fix that, but I can't really work out how to get rid of all the extra ones.