-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
ValueError: I/O operation on closed file #633
Comments
Sorry for the late reply. Do you happen to recall the error message associated with the I tried injecting Given that we're setting the instance's buffer to Thanks for reporting this. |
@andymccurdy If the referenced commit you made above resolves the issue, this issue could be closed as resolved. |
Ya, closing this as it seems to have been resolved. |
Python 2.6, redis-py 2.10.3
During
connection.disconnect
I get a ValueError and the connection cleanup fails.Traceback, with app specific first couple stackframes removed:
send_packed_command encountered a socket.error (
error(9, 'Bad file descriptor')
). It tries to callself.disconnect()
but gets a ValueError inside the close/purge of the SocketBuffer used by the PythonParser, so it never gets to raise ConnectionError. The relevant bit fromConnection.send_packed_command
is:I think the
SocketBuffer.close
should catch and ignore this error or possibly just log it. If theSocketBuffer._buffer
isn't there anymore while we try to remove it, so be it.The text was updated successfully, but these errors were encountered: