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
Some SocketIO methods can succeed after close() #60046
Comments
>>> import socket
>>> s = socket.socket()
>>> f = s.makefile("rb", buffering=0)
>>> f
<socket.SocketIO object at 0x7f2f323cd790>
>>> f.close()
>>> f.writable()
False
>>> f.readable()
False |
This patch fixes the problem, making those methods raise a ValueError exception after close. I also added one test case for this issue. |
Actually, I've found a couple of issues with the patch:
|
Fixed seekable(), and amended tests; see patch. |
New changeset fad797916266 by Antoine Pitrou in branch '3.2': New changeset 3b0e20f71d8a by Antoine Pitrou in branch 'default': |
Ok, I've committed the patch. Thanks Alessandro! |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: