MCPcopy Index your code
hub / github.com/python/cpython / server_bind

Method server_bind

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

Source from the content-addressed store, hash-verified

1049 class DualStackServerMixin:
1050
1051 def server_bind(self):
1052 # suppress exception when protocol is IPv4
1053 with contextlib.suppress(Exception):
1054 self.socket.setsockopt(
1055 socket.IPPROTO_IPV6, socket.IPV6_V6ONLY, 0)
1056 return super().server_bind()
1057
1058 def finish_request(self, request, client_address):
1059 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