Message345740
I have the same problem, and use a similar walk-around:
1. I set the rbufsize to -1
2. I use self.connection.recv instead of self.rfile.read(), like this:
while select.select([self.connection], [], [], 0)[0]:
if not self.connection.recv(1):
However, when I go through the code, I find that at line 967 in server.py(I am using python 3.7), there is a comment:
# Make rfile unbuffered -- we need to read one line and then pass
# the rest to a subprocess, so we can't use buffered input.
rbufsize = 0
Seems for some reasons the author set rfile unbuffered, and I know nothing about it.
If you know much about it, please give me some hints, thank you. |
|
Date |
User |
Action |
Args |
2019-06-16 10:28:00 | shajianrui | set | recipients:
+ shajianrui, vsbogd |
2019-06-16 10:28:00 | shajianrui | set | messageid: <1560680880.71.0.641198769762.issue37301@roundup.psfhosted.org> |
2019-06-16 10:28:00 | shajianrui | link | issue37301 messages |
2019-06-16 10:28:00 | shajianrui | create | |
|