18 Apr
2014
18 Apr
'14
12:35 p.m.
On Fri, 18 Apr 2014 14:28:22 +0200
"Giampaolo Rodola'"
2 - in case of error set a "sent" attribute to the returned (socket.error) exception.
If you want to write the logic to re-send the remaining data on error, why not also write the logic to use send() and re-send the remaining data on success? AFAICT, it's the same logic. Regards Antoine.