MCPcopy Create free account
hub / github.com/pyfa-org/Pyfa / get_request

Method get_request

service/server.py:76–84  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

74 self.run = True
75
76 def get_request(self):
77 while self.run:
78 try:
79 sock, addr = self.socket.accept()
80 sock.settimeout(None)
81 return sock, addr
82 except socket.timeout:
83 pyfalog.warning("Server timed out waiting for connection")
84 pass
85
86 def stop(self):
87 pyfalog.warning("Setting pyfa server to stop.")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected