kopia lustrzana https://github.com/micropython/micropython-lib
uasyncio/benchmark: CPython asyncio compatibility.
Unlimited .read() doesn't play well with it.pull/33/merge
rodzic
0ce0123ab5
commit
68b30061bc
|
@ -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")
|
||||
|
|
Ładowanie…
Reference in New Issue