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

Method handle_accept

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

Source from the content-addressed store, hash-verified

134 HTTPServer.__init__(self)
135
136 def handle_accept(self):
137 pair = self.accept()
138 if pair is not None:
139 sock, addr = pair
140# print 'Incoming connection from %s' % repr(addr)
141 self.connections += 1
142# if self.connections % 1000 == 0:
143# print "Processed %i connections, active %i" % (self.connections, len(asyncore.socket_map))
144 HTTPSRequestHandler(sock)
145
146if __name__ == "__main__":
147 client = HTTPSServer()

Callers

nothing calls this directly

Calls 2

HTTPSRequestHandlerClass · 0.85
acceptMethod · 0.45

Tested by

no test coverage detected