Re: [Pysnmp-dev] More potential socket_map issues
Brought to you by:
elie
From: Ilya E. <il...@gl...> - 2007-09-03 08:15:56
|
Your patch has been committed into CVS. Sorry for delay. Thanks, ilya [ skipped ] > The following worked for me (similar to my original hack, but closer > to the source of the problem): > > class AbstractSocketTransport(asyncore.dispatcher): > sockFamily = sockType = None > retryCount = 0; retryInterval = 0 > def __init__(self, sock=None, sockMap=None): > # @patch begin > # The socket map is managed by the AsynsockDispatcher on > which this > # transport is registered. > if sockMap is None: > sockMap = {} > # @patch end > if sock is None: > try: > > The temporary socket map is immediately discarded and then the > AbstractSocketTransport > only participates in the socket map of the AsynsockDispatcher on > which it is registered. |