[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

python server socket file transfer

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.