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

Method stop

opcua/server/binary_server_asyncio.py:127–134  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

125 self.logger.warning('Listening on {0}:{1}'.format(self.hostname, self.port))
126
127 def stop(self):
128 self.logger.info("Closing asyncio socket server")
129 for transport in self.iserver.asyncio_transports:
130 transport.close()
131 if self._server:
132 self.loop.call_soon(self._server.close)
133 self.loop.run_coro_and_wait(self._server.wait_closed())
134 self.loop = None

Callers

nothing calls this directly

Calls 3

call_soonMethod · 0.80
run_coro_and_waitMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected