W dniu 03.12.2010 01:22, Roger Hoover pisze: > What if the existing reference counter both closes the socket and > removes the reference? I think that would make the code much simpler.
I'm not sure it will work either, though I don't know if the problem may ever occur in supervisord in real life. If sockets are only closed just before destruction, it probably isn't an issue and would indeed be the simplest. If you get a ManagedSocket to close the socket and unregister itself, you may end up with two ManagedSockets for the same url -- one that is kept alive by a SocketManager but not present in SocketManager.sockets and a new one, created by _another_ SocketManager and put into .sockets. Does that make sense or am I just overly paranoid? Best regards, Grzegorz Nosek _______________________________________________ Supervisor-users mailing list [email protected] http://lists.supervisord.org/mailman/listinfo/supervisor-users
