What is the actual impact of calling socket.recv with a bufsize that is not a power of 2?
I’m pretty sure the ‘power of 2’ advice is based on an error in editing, and should not be taken as a requirement. That specific piece of advice was added to the Python 2.5 documentation (and backported to Python 2.4.3 docs), in response to Python issue #756104. The reporter was using an unreasonably large buffer … Read more