Skip to content

Conversation

@vstinner
Copy link
Contributor

Fix GreenSocket.recv_into(): if fd.recv_into() fails with a blocking I/O error: calls the trampoline in a loop, until the call succeed.

Fix recv_into(), recvfrom(), recvfrom_into() and sendto() methods of
GreenSocket to handle blocking I/O errors (ex: BlockingIOError on
Python 3). Even if the trampoline was called, the socket method can
still fails with an I/O errors for various reasons (see manual pages
of the C functions for examples).

Ref: #274
@vstinner
Copy link
Contributor Author

I completed my patch to fix the bug in more methods: "fix recv_into(), recvfrom(), recvfrom_into() and sendto() methods of GreenSocket to handle blocking I/O errors".

@jstasiak
Copy link
Contributor

jstasiak commented Jan 7, 2016

Thank you @Haypo, just merged this into master (as 19035b1).

@jstasiak
Copy link
Contributor

jstasiak commented Jan 7, 2016

I completely missed the fact that this breaks tests on Python 3, just reverted, sorry.

@jstasiak jstasiak reopened this Jan 7, 2016
@jstasiak
Copy link
Contributor

A version produced in #274 has been merged into master (as bc4d1b5).

@jstasiak jstasiak closed this Jan 10, 2016
@CyrilRoelandteNovance
Copy link

Do you think there could be a bugfix release of eventlet? I need this patch to fix a bug in OpenStack (https://bugs.launchpad.net/bugs/1521756).

@jstasiak
Copy link
Contributor

I think I can update the change log by tomorrow (there are more changes than this, some of them breaking backwards compatibility) and then it's up to @temoto to upload it.

@vstinner
Copy link
Contributor Author

vstinner commented Jan 22, 2016 via email

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.

3 participants