Message1661
I use this script to recreate the problem.
#-=-=-=-=--=-=
from Client import Client
class MyCallback:
def readyReceived(self):
print "Callback received ready notification"
if __name__ == "__main__":
cli = Client('localhost', 9000, MyCallback())
cli.send()
#-=-=-=-=-=-=-=-=
When I use this script, the code hangs on trying to send to the socket.
However, the bug seems to be with the object returned from the makefile method. When I replace your Client.send() method with this method, which sends directly on the socket rather than through the madefile
#-=-=-=-=-=-=-=-=
def send(self):
print 'Enter Client send()'
# self.fc.write("Send" + "\r\n")
self.connection.send("Send" + "\r\n")
print 'Exit Client send()'
#-=-=-=-=-=-=-=-=
The org.python.core.PyFile object returned from socket.makefile() seems to be hanging on the write call.
I'm looking into what that might hang now; more soon.
|
|
Date |
User |
Action |
Args |
2008-02-20 17:17:51 | admin | link | issue1744567 messages |
2008-02-20 17:17:51 | admin | create | |
|