kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit d41054bd265b4a3487c094bf9c9b991c0ce8253b
parent b06160c76825f3036c49ad07f35a1314c36db6c7
Author: Joris Vink <joris@coders.se>
Date:   Wed, 13 Mar 2019 16:01:42 +0100

remove the socket from the event queue on dealloc.

Diffstat:
src/python.c | 7+++++++
1 file changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/python.c b/src/python.c @@ -1657,6 +1657,13 @@ pysocket_alloc(void) static void pysocket_dealloc(struct pysocket *sock) { + if (sock->scheduled) { + kore_platform_disable_read(sock->fd); +#if !defined(__linux__) + kore_platform_disable_write(sock->fd); +#endif + } + if (sock->socket != NULL) { Py_DECREF(sock->socket); } else if (sock->fd != -1) {