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 503f42074c1e031d6b88ee0cc988622c158f6155
parent fe84997ce91fd715ee6ec0ec12385cb18371ac95
Author: Joris Vink <joris@coders.se>
Date:   Sun,  5 May 2019 14:47:04 +0200

http_timeout must be 0 when upgrading to websockets

otherwise kore will timeout an established websocket connection
after http_timeout seconds.

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

diff --git a/src/websocket.c b/src/websocket.c @@ -105,6 +105,7 @@ kore_websocket_handshake(struct http_request *req, const char *onconnect, req->owner->disconnect = websocket_disconnect; req->owner->rnb->flags &= ~NETBUF_CALL_CB_ALWAYS; + req->owner->http_timeout = 0; req->owner->idle_timer.start = kore_time_ms(); req->owner->idle_timer.length = kore_websocket_timeout;