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,9 +12,10 @@ class EchoHandler(tcp.BaseHandler):
sni = None
def handle(self):
v = self.rfile.readline()
self.wfile.write(v)
self.wfile.flush()
while True:
v = self.rfile.safe_read(1)
self.wfile.write(v)
self.wfile.flush()
class TestCheckALPNMatch(test.ServerTestBase):