[Python-ideas] socket.sendall() "counter" parameter
Antoine Pitrou
solipsis at pitrou.net
Fri Apr 18 14:35:35 CEST 2014
On Fri, 18 Apr 2014 14:28:22 +0200
"Giampaolo Rodola'" <g.rodola at gmail.com>
wrote:
>
> 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.
More information about the Python-ideas
mailing list