kore

a fork of the worlds most advanced web framework
Log | Files | Refs | README | LICENSE

commit 4cc9e216bb85945964b173f18442c517bdac296e
parent 2dd66586ffff57177278c5478993f886e4b89c0d
Author: Joris Vink <joris@coders.se>
Date:   Tue,  6 Nov 2018 16:54:26 +0100

Don't call close() on the python socket on dealloc

Diffstat:
Msrc/python.c | 1-
1 file changed, 0 insertions(+), 1 deletion(-)

diff --git a/src/python.c b/src/python.c @@ -1499,7 +1499,6 @@ static void pysocket_dealloc(struct pysocket *sock) { if (sock->socket != NULL) { - (void)PyObject_CallMethod(sock->socket, "close", NULL); Py_DECREF(sock->socket); } else if (sock->fd != -1) { (void)close(sock->fd);