MCPcopy
hub / github.com/ModelTC/LightLLM / fix_connect

Function fix_connect

lightllm/utils/rpyc_fix_utils.py:68–72  ·  view source on GitHub ↗
(cls, host, port, **kwargs)

Source from the content-addressed store, hash-verified

66
67
68def fix_connect(cls, host, port, **kwargs):
69 if kwargs.pop("ipv6", False):
70 kwargs["family"] = socket.AF_INET6
71 kwargs["nodelay"] = True
72 return cls(cls._connect(host, port, **kwargs))
73
74
75SocketStream.connect = classmethod(fix_connect)

Callers

nothing calls this directly

Calls 1

popMethod · 0.80

Tested by

no test coverage detected