Vinay Sajip <vinay_sa...@yahoo.co.uk> added the comment:

> It is enough to reopen the socket and send the current message again.

A common reason for connection failure in SocketHandler is the other end going 
offline for some reason. The offline period can often be measured in seconds to 
hours, or even longer. The current strategy is to retry connection, but on the 
next logging call, and with an exponential backoff.

Otherwise, if the remote end goes down and you keep retrying to connect on the 
same call, the handler would keep trying to connect and failing, and this could 
slow things down.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue40352>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to