STINNER Victor added the comment: Oh, in fact recvall() is a bad name. The io module uses the "readall()" name to really read all content of a file, whereas "recvall(N)" here only read up to N bytes.
It would be better to reuse the same name than asyncio, "readexactly(N)": https://docs.python.org/dev/library/asyncio-stream.html#asyncio.StreamReader.readexactly asyncio and http.client already have their IncompleteRead exceptions. Maybe it would be time to add a builtin exception? ---------- title: Adding the missing socket.recvall() method -> Adding a recvexactly() to socket.socket: receive exactly n bytes _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue1103213> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com