Retrieve input
Peter Hansen
peter at engcorp.com
Thu Dec 1 18:12:09 EST 2005
amfr wrote:
> Thanks, but when I try to read the stream using read(), the script just
> keeps on going and does not stop. When i press ctrl + c, the script
> shows thsi (top of error taken off):
> File "modules/runpython.py", line 88, in runModule
> sys.stdin = self.rfile.read()
> File
> "/System/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/socket.py",
> line 283, in read
> data = self._sock.recv(recv_size)
> KeyboardInterrupt
>
> Any ideas?
It's connecting to a server, and trying to grab all the data... but the
server isn't sending anything at this point, so the call to _sock.recv()
blocks indefinitely.
Troubleshooting further would require details you haven't provided, such
as what URL is requested, what the server is, etc...
-Peter
More information about the Python-list
mailing list