(self, connlist)
adds a connection to the set of inactive ones
adds a connection to the set of inactive ones
adds a connection to the set of inactive ones
def _handle_poll_result(self, connlist):
        '''adds a connection to the set of inactive ones'''
        for fd, evt in connlist:
            try:
                # remove connection from the inactive ones
                self._remove_from_inactive_connection(fd)
                # Is it an error ?
                if "e" in evt or "n" in evt or "h" in evt:
                    # it was an error, connection was closed. Do the same on our side
                    self._drop_connection(fd)
                else:
                    # connection has data, let's add it to the active queue
                    self._active_connection_queue.put(fd)
            except KeyError:
                # the connection has already been dropped. Give up
                pass
def _handle_poll_result ( self , connlist ) : for fd , evt in connlist : try : # remove connection from the inactive ones self . _remove_from_inactive_connection ( fd ) # Is it an error ? if "e" in evt or "n" in evt or "h" in evt : # it was an error, connection was closed. Do the same on our side self . _drop_connection ( fd ) else : # connection has data, let's add it to the active queue self . _active_connection_queue . put ( fd ) except KeyError : # the connection has already been dropped. Give up pass