From 3d8610b6bc78945ecf1564b7370442786791c533 Mon Sep 17 00:00:00 2001 From: Aldo Cortesi Date: Mon, 25 Jun 2012 11:22:44 +1200 Subject: [PATCH] Move server to new explicit netlib API. --- libpathod/pathoc.py | 1 - libpathod/pathod.py | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/libpathod/pathoc.py b/libpathod/pathoc.py index c2abcaeb1..5105decfc 100644 --- a/libpathod/pathoc.py +++ b/libpathod/pathoc.py @@ -26,4 +26,3 @@ class Pathoc(tcp.TCPClient): r.serve(self.wfile) self.wfile.flush() return http.read_response(self.rfile, r.method, None) - diff --git a/libpathod/pathod.py b/libpathod/pathod.py index bc2bf6af8..3d0f73e31 100644 --- a/libpathod/pathod.py +++ b/libpathod/pathod.py @@ -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()