Safe writing to socket and return OperationalError in case the connection was lost: #453.
Notify connection pool in any case, even if an exception happened during the connection, to resume the connection by another task in a queue (otherwise they are being frozen).
What do these changes do?
These are old patches aimed to fix the following:
OperationalError
in case the connection was lost: #453.Checklist