MCPcopy Index your code
hub / github.com/Bitmessage/PyBitmessage / handle_accept

Method handle_accept

src/network/httpd.py:118–126  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

116 self.listen(5)
117
118 def handle_accept(self):
119 pair = self.accept()
120 if pair is not None:
121 sock, addr = pair
122# print 'Incoming connection from %s' % repr(addr)
123 self.connections += 1
124# if self.connections % 1000 == 0:
125# print "Processed %i connections, active %i" % (self.connections, len(asyncore.socket_map))
126 HTTPRequestHandler(sock)
127
128
129class HTTPSServer(HTTPServer):

Callers

nothing calls this directly

Calls 2

HTTPRequestHandlerClass · 0.85
acceptMethod · 0.45

Tested by

no test coverage detected