pysyncobj/transport.py
def _createServer(self):
        """
        Create the TCP server (but don't bind yet)
        """

        conf = self._syncObj.conf
        bindAddr = conf.bindAddress or getattr(self._selfNode, 'address')
        if not bindAddr:
            raise RuntimeError('Unable to determine bind address')
        host, port = bindAddr.rsplit(':', 1)
        host = globalDnsResolver().resolve(host)
        self._server = TcpServer(self._syncObj._poller, host, port, onNewConnection = self._onNewIncomingConnection,
                                 sendBufferSize = conf.sendBufferSize,
                                 recvBufferSize = conf.recvBufferSize,
                                 connectionTimeout = conf.connectionTimeout)
def _createServer(self):
        """
        Create the TCP server (but don't bind yet)
        """

        conf = self._syncObj.conf
        bindAddr = conf.bindAddress or getattr(self._selfNode, 'address')
        if not bindAddr:
            raise RuntimeError('Unable to determine bind address')
        host, port = bindAddr.rsplit(':', 1)
        host = globalDnsResolver().resolve(host)
        self._server = TcpServer(self._syncObj._poller, host, port, onNewConnection = self._onNewIncomingConnection,
                                 sendBufferSize = conf.sendBufferSize,
                                 recvBufferSize = conf.recvBufferSize,
                                 connectionTimeout = conf.connectionTimeout)
Create the TCP server (but don't bind yet)