(self, sock)
Implementation of the accept method : only pushes the work to the internal queue.
        In case the queue is full, raises an AsynResultTimeout error
Implementation of the accept method : only pushes the work to the internal queue.
        In case the queue is full, raises an AsynResultTimeout error
Implementation of the accept method : only pushes the work to the internal queue . In case the queue is full raises an AsynResultTimeout error
def _accept_method(self, sock):
        '''Implementation of the accept method : only pushes the work to the internal queue.
        In case the queue is full, raises an AsynResultTimeout error'''
        try:
            # authenticate and build connection object
            conn = self._authenticate_and_build_connection(sock)
            # put the connection in the active queue
            if conn:
                fd = conn.fileno()
                self.fd_to_conn[fd] = conn
                self._add_inactive_connection(fd)
                self.clients.clear()
        except Exception:
            ex = sys.exc_info()[1]
            self.logger.warning("failed to serve client, caught exception : %s", str(ex))
def _accept_method ( self , sock ) : try : # authenticate and build connection object conn = self . _authenticate_and_build_connection ( sock ) # put the connection in the active queue if conn : fd = conn . fileno ( ) self . fd_to_conn [ fd ] = conn self . _add_inactive_connection ( fd ) self . clients . clear ( ) except Exception : ex = sys . exc_info ( ) [ 1 ] self . logger . warning ( "failed to serve client, caught exception : %s" , str ( ex ) )