Skip to content

Commit dbc45a2

Browse files
author
Paul Sokolovsky
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy