How do I read all data from a python socket? There doesn't seem to be a "sendall" (like Socket#read in ruby) counterpart for reading and concatenating buffers seem fairly low-level for a what's supposed to be a higher level language. If I do have to resort to that (concatenating buffers that is), is there an optimal buffer size I should choose assuming that I'm dealing with UNIX sockets?
receiveallfunction, right?2048by convention but you'll have to use a busy while loop to continually grab data as you probably suspect. Python does have higher level libraries for this kind of thing, but if you are dealing with sockets, it is going to be a little lower-level-ugly, yes.SocketServerhas subclasses for Unix sockets which should be a little higher-level but I'm actually a little surprised after searching, that there are no high-level networking modules for python beyond this in the standard library.