http2: fix EchoHandler test helper

This commit is contained in:
Thomas Kriechbaumer 2015-06-05 20:49:03 +02:00
parent e7c84a1ce1
commit 6c1c6f5f0a

View File

@ -12,7 +12,8 @@ class EchoHandler(tcp.BaseHandler):
sni = None sni = None
def handle(self): def handle(self):
v = self.rfile.readline() while True:
v = self.rfile.safe_read(1)
self.wfile.write(v) self.wfile.write(v)
self.wfile.flush() self.wfile.flush()