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 a9ee15bff6f5c154647ec994771645c34345fb4c
parent 5ac62b17bce8dae24c6cd9ee2c89a4e7b32484b6
Author: Joris Vink <joris@coders.se>
Date:   Thu,  2 Dec 2021 22:47:17 +0100

Improve closing of a kore.socket() in Python API.

When a kore.socket() is closed from any coroutine, make sure any other
coroutines waiting on events on the socket are awoken so they properly
can return errors.

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

diff --git a/src/python.c b/src/python.c @@ -3197,6 +3197,7 @@ pysocket_close(struct pysocket *sock, PyObject *args) } sock->fd = -1; + sock->event.evt.handle(&sock->event, 1); Py_RETURN_TRUE; }