J
Jason
Hi,
When using the socket module in Python 2.3 for windows, I'm having problems
using socket.recv(int). The function works fine on its own, but when I
attempt to encapsulate the socket functions into a class method, my script
just hangs with the Python DOS window open.
My class method is simple:
def getData(self, max_size=1024):
return self.sock.recv(max_size)
Why would an instance of this class cause python to hang in windows? (Yes,
I know Windows sucks, but I'm looking for a slightly better resolution to
the problem
Thanx,
Jay
When using the socket module in Python 2.3 for windows, I'm having problems
using socket.recv(int). The function works fine on its own, but when I
attempt to encapsulate the socket functions into a class method, my script
just hangs with the Python DOS window open.
My class method is simple:
def getData(self, max_size=1024):
return self.sock.recv(max_size)
Why would an instance of this class cause python to hang in windows? (Yes,
I know Windows sucks, but I'm looking for a slightly better resolution to
the problem
Thanx,
Jay