kore

An easy to use, scalable and secure web application framework for writing web APIs in C.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit 233415a7bb1de45435367d4302caad46aff40570
parent 4bc39f19afc9c18f4ee0a157d19f6e6e5d2038aa
Author: Joris Vink <joris@coders.se>
Date:   Wed, 25 Sep 2019 15:47:14 +0200

close the wrapped socket instead of the os one.

Diffstat:
examples/python-async/src/async_socket.py | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/examples/python-async/src/async_socket.py b/examples/python-async/src/async_socket.py @@ -49,8 +49,7 @@ async def async_socket(req): # Respond with the response from /socket-test. req.response(200, data) - # Close the underlying socket, no need to close the wrapped kore.socket - sock.close() + conn.close() async def socket_test(req): # Delay response a bit, just cause we can.