MCPcopy Create free account
hub / github.com/FreeOpcUa/python-opcua / connection_lost

Method connection_lost

opcua/server/binary_server_asyncio.py:45–51  ·  view source on GitHub ↗
(self, ex)

Source from the content-addressed store, hash-verified

43 self.clients.append(self)
44
45 def connection_lost(self, ex):
46 self.logger.info('Lost connection from %s, %s', self.peername, ex)
47 self.transport.close()
48 self.iserver.asyncio_transports.remove(self.transport)
49 self.processor.close()
50 if self in self.clients:
51 self.clients.remove(self)
52
53 def data_received(self, data):
54 logger.debug("received %s bytes from socket", len(data))

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected