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

Method setup

Lib/socketserver.py:809–820  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

807 disable_nagle_algorithm = False
808
809 def setup(self):
810 self.connection = self.request
811 if self.timeout is not None:
812 self.connection.settimeout(self.timeout)
813 if self.disable_nagle_algorithm:
814 self.connection.setsockopt(socket.IPPROTO_TCP,
815 socket.TCP_NODELAY, True)
816 self.rfile = self.connection.makefile('rb', self.rbufsize)
817 if self.wbufsize == 0:
818 self.wfile = _SocketWriter(self.connection)
819 else:
820 self.wfile = self.connection.makefile('wb', self.wbufsize)
821
822 def finish(self):
823 if not self.wfile.closed:

Callers

nothing calls this directly

Calls 4

_SocketWriterClass · 0.85
settimeoutMethod · 0.45
setsockoptMethod · 0.45
makefileMethod · 0.45

Tested by

no test coverage detected