WebSocket: fix connection timeout
This commit is contained in:
parent
06e066a491
commit
9531f2b518
@ -2107,6 +2107,7 @@ backend_ws_connect (struct ws_context *self, struct error **e)
|
||||
// As it is, this isn't really too useful.
|
||||
ev_timer_init (&self->timeout_watcher,
|
||||
backend_ws_on_connection_timeout, 30, 0);
|
||||
self->timeout_watcher.data = self;
|
||||
|
||||
// Run an event loop to process the handshake
|
||||
ev_timer_start (EV_DEFAULT_ &self->timeout_watcher);
|
||||
|
Loading…
Reference in New Issue
Block a user