MCPcopy Index your code
hub / github.com/RustPython/RustPython / server_bind

Method server_bind

Lib/http/server.py:1414–1419  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1412 class DualStackServerMixin:
1413
1414 def server_bind(self):
1415 # suppress exception when protocol is IPv4
1416 with contextlib.suppress(Exception):
1417 self.socket.setsockopt(
1418 socket.IPPROTO_IPV6, socket.IPV6_V6ONLY, 0)
1419 return super().server_bind()
1420
1421 def finish_request(self, request, client_address):
1422 self.RequestHandlerClass(request, client_address, self,

Callers

nothing calls this directly

Calls 3

superClass · 0.85
setsockoptMethod · 0.45
server_bindMethod · 0.45

Tested by

no test coverage detected