Help with sockets
Fredrik Lundh
fredrik at pythonware.com
Wed Aug 14 16:39:29 EDT 2002
Godefroid Chapelle wrote:
> When trying to access the server, xmlrpclib blocks on the following
> line in the method _fileobject.read() from socket.py :
>
> new = self._sock.recv(max(n, self._rbufsize))
>
> I suspect there is an error in the Delphi socket library I am using :
> when I stop the server, the python code suddenly stops waiting and
> finishes correctly.
sounds like the Delphi library is using a buffered socket (similar
to python's socket.makefile), and that you forgot to flush the
buffer when you're done writing data.
</F>
More information about the Python-list
mailing list