web status display for long running program

Simon Wittber simonwittber at gmail.com
Fri Feb 25 03:41:23 EST 2005


> I was inspired to enhance your code, and perform a critical bug-fix.
> Your code would not have sent large files out to dialup users, because
> it assumed all data was sent on the 'send' command. I added code to
> check for the number of bytes sent, and loop until it's all gone. 

Another solution is to simply use the socket.sendall method, which
will continue to send all data until all the bytes have been sent.

Sw.



More information about the Python-list mailing list