mirror of
https://github.com/jorisvink/kore
synced 2025-03-09 12:39:01 -04:00
close the wrapped socket instead of the os one.
This commit is contained in:
parent
4bc39f19af
commit
233415a7bb
@ -49,8 +49,7 @@ async def async_socket(req):
|
|||||||
# Respond with the response from /socket-test.
|
# Respond with the response from /socket-test.
|
||||||
req.response(200, data)
|
req.response(200, data)
|
||||||
|
|
||||||
# Close the underlying socket, no need to close the wrapped kore.socket
|
conn.close()
|
||||||
sock.close()
|
|
||||||
|
|
||||||
async def socket_test(req):
|
async def socket_test(req):
|
||||||
# Delay response a bit, just cause we can.
|
# Delay response a bit, just cause we can.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user