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 01f9b4fcdea6a946b68eea2f66f344ec87690118
parent eb9b7f7b14fbfd6c8f766c08179d28fed41536ab
Author: Joris Vink <joris@coders.se>
Date:   Tue, 12 Mar 2019 20:04:08 +0100

Check for EAGAIN when calling connect(2).

Linux does this under certain conditions.

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

diff --git a/src/python.c b/src/python.c @@ -2016,7 +2016,7 @@ pysocket_async_connect(struct pysocket_op *op) if (connect(op->data.fd, (struct sockaddr *)&op->data.socket->addr, op->data.socket->addr_len) == -1) { if (errno != EALREADY && errno != EINPROGRESS && - errno != EISCONN) { + errno != EISCONN && errno != EAGAIN) { PyErr_SetString(PyExc_RuntimeError, errno_s); return (NULL); }