[Py4j-users] A question about life cycle control of sockets in GatewayServer instance
Status: Beta
Brought to you by:
barthe
From: Jason Ni <jas...@gm...> - 2012-07-14 14:43:04
|
Hello, There is a List member "connections" in GatewayServer object. It holds every socket object until the GatewayServer is shutdown. This may be not good for this use case: the GatewayServer is providing a kind of service. Python clients connect to the GatewayServer, do some communication, close the connect and end the Python process, but not shutdown the server. After many times of this kind of connections, I see those socket objects are held in the "connections" list and not garbage collected. Is this working as design or I did something wrong? Thanks, - Jason |