python server socket file transfer
dieter
dieter at handshake.de
Wed Jan 10 02:06:55 EST 2018
bingbong3334 at gmail.com writes:
> how much client can i handel whit this code what the amount of client that i can handel
> the size of the file is 716 kb
> ...
> self.sock.send(l)
Please read the documentation for *send* in the "socket" module:
it tells you that "send" (in contrast to "sendall") is *not* guarantied
to send the complete *l* (there is no guarantee how much is sent);
the return value of "send" tells you how many bytes have been sent.
More information about the Python-list
mailing list