From 68b30061bc48a0a71a60ea5d2fdeda2d90a65666 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Sun, 21 Jun 2015 02:00:42 +0300 Subject: [PATCH] uasyncio/benchmark: CPython asyncio compatibility. Unlimited .read() doesn't play well with it. --- uasyncio/benchmark/test_http_server_light.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uasyncio/benchmark/test_http_server_light.py b/uasyncio/benchmark/test_http_server_light.py index 39eae754..2fbb92a1 100644 --- a/uasyncio/benchmark/test_http_server_light.py +++ b/uasyncio/benchmark/test_http_server_light.py @@ -5,7 +5,7 @@ import uasyncio as asyncio def serve(reader, writer): #print(reader, writer) #print("================") - yield from reader.read() + yield from reader.read(256) yield from writer.awrite("HTTP/1.0 200 OK\r\n\r\nHello.\r\n") yield from writer.aclose() #print("Finished processing request")