Move server to new explicit netlib API.

This commit is contained in:
Aldo Cortesi 2012-06-25 11:22:44 +12:00
parent 15c48cfc5e
commit 3d8610b6bc
2 changed files with 3 additions and 2 deletions

View File

@ -26,4 +26,3 @@ class Pathoc(tcp.TCPClient):
r.serve(self.wfile)
self.wfile.flush()
return http.read_response(self.rfile, r.method, None)

View File

@ -109,7 +109,9 @@ class Pathod(tcp.TCPServer):
)
def handle_connection(self, request, client_address):
PathodHandler(request, client_address, self)
h = PathodHandler(request, client_address, self)
h.handle()
h.finish()
def add_log(self, d):
lock = threading.Lock()