close the wrapped socket instead of the os one.

This commit is contained in:
Joris Vink 2019-09-25 15:47:14 +02:00
parent 4bc39f19af
commit 233415a7bb

View File

@ -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.