socket + file i/o question

John weekender_ny at yahoo.com
Sun Aug 7 18:15:24 CEST 2005


Here is what the send and recieved number of bytes show up as:

Filesize being sent = 507450
Server sending file to client...
(total size sent , buffer size)
...
491520 4096
495616 4096
499712 4096
503808 3642
./server.py: (107, 'Transport endpoint is not connected')

On the client side, the bytes recieved shows one extra byte!
(Bytes recieved, buffer size)
...
504256 1400
504256 1400
505656 1400
505656 1400
507056 1400
507056 395
507451 395
EOF received
./client.py: An unknown error occurred.

Note that on the client there was an extra byte??
507451 ??

Hope this helps in explaining my question better,
--j




More information about the Python-list mailing list