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 7b286f2f70fb943b32401bbbc59d208950524dd7
parent 8fe16c193a7c35e3c4b59f234ebb2821d894c261
Author: Joris Vink <joris@coders.se>
Date:   Tue, 25 Nov 2014 20:00:33 +0100

Set correct timeout start for websockets

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

diff --git a/src/websocket.c b/src/websocket.c @@ -109,7 +109,7 @@ kore_websocket_handshake(struct http_request *req, struct kore_wscbs *wscbs) req->owner->proto = CONN_PROTO_WEBSOCKET; req->owner->wscbs = wscbs; - req->owner->idle_timer.start = 0; + req->owner->idle_timer.start = kore_time_ms(); req->owner->idle_timer.length = kore_websocket_timeout; if (wscbs->connect != NULL)