Paramiko throws EOFError rather than returning a 0 length file or ENOENT

Vincent Ladeuil v.ladeuil at
Tue Sep 12 16:26:11 BST 2006

>>>>> "jam" == John Arbash Meinel <john at> writes:


    jam> On that note, should it keep trying to read more until
    jam> it gets the full length, and fail only if it gets a
    jam> 0-length read, or should it just fail on the first
    jam> wrong-length read?

One scenario that may happen with sockets is that you get less
than what you required but the rest come later. So if you get a
short read, you must wait before retrying.


More information about the bazaar mailing list