Skip to content
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'upstream/master' into connection-pool-fix
  • Loading branch information
donbowman committed May 23, 2022
commit a7fb84421933c5d452070683b0e7a7f14d317a5e
2 changes: 1 addition & 1 deletion redis/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1592,7 +1592,7 @@ def get_connection(self, command_name, *keys, **options):
try:
if connection.can_read():
raise ConnectionError('Connection has data')
except (ConnectionError, TimeoutError):
except (ConnectionError, TimeoutError, OSError):
connection.disconnect()
connection.connect()
if connection.can_read():
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.