Skip to content

Commit dbc45a2

Browse files
committed
Add changes to expose uPy segfault.
1 parent 18c0b2c commit dbc45a2

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

‎asyncio/asyncio.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@ def readline(self):
205205
s = yield IORead(self.s)
206206
log.debug("StreamReader.readline(): after IORead: %s", s)
207207
res = self.s.readline()
208-
if not res:
209-
yield IODone(IO_READ, self.s)
208+
# if not res:
209+
# yield IODone(IO_READ, self.s)
210210
log.debug("StreamReader.readline(): res: %s", res)
211211
return res
212212

‎asyncio/test_http_client.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ def print_http_headers(url):
55
reader, writer = yield from asyncio.open_connection(url, 80)
66
print(reader, writer)
77
print("================")
8-
query = "GET / HTTP/1.0\n\n"
8+
query = "GET / HTTP/1.0\r\nHost: foo\r\n\r\n"
9+
# query = "GET / HTTP/1.0\r\n\r\n"
910
print(query.encode('latin-1'))
1011
yield from writer.write(query)
1112
while True:

0 commit comments

Comments
 (0)