def connection_made(self, transport): self.transport = transport peer = transport.get_extra_info('peername') self.peer = peer2str(peer) self.log.debug('RawSocker Asyncio: Connection made with peer {peer}', peer=self.peer) self._buffer = b'' self._header = None self._wait_closed = asyncio.Future()
def connection_made(self, transport): self.transport = transport peer = transport.get_extra_info('peername') self.peer = peer2str(peer) self.log.debug('RawSocker Asyncio: Connection made with peer {peer}', peer=self.peer) self._buffer = b'' self._header = None self._wait_closed = txaio.create_future()
def connection_made(self, transport): # the peer we are connected to try: self.peer = peer2str(transport.get_extra_info('peername')) except: self.peer = 'process:{}'.format(self.transport.pid) self.peer_transport = 'rawsocket' PrefixProtocol.connection_made(self, transport) self._handshake_done = False
def connection_made(self, transport): self.transport = transport self.receive_queue = deque() self._consume() try: self.peer = peer2str(transport.get_extra_info('peername')) except: self.peer = u"?" self._connectionMade()
def connection_made(self, transport): self.transport = transport self.receive_queue = deque() self._consume() # the peer we are connected to try: self.peer = peer2str(transport.get_extra_info('peername')) except: self.peer = 'process:{}'.format(self.transport.pid) self.peer_transport = 'websocket' self._connectionMade()