mirror of
https://github.com/warmcat/libwebsockets.git
synced 2025-03-09 00:00:04 +01:00
windows: socket keepalive valid is ms
https://github.com/warmcat/libwebsockets/issues/1477
This commit is contained in:
parent
4319ffe588
commit
b4161f5e97
1 changed files with 2 additions and 2 deletions
|
@ -64,8 +64,8 @@ lws_plat_set_socket_options(struct lws_vhost *vhost, lws_sockfd_type fd,
|
|||
return 1;
|
||||
|
||||
alive.onoff = TRUE;
|
||||
alive.keepalivetime = vhost->ka_time;
|
||||
alive.keepaliveinterval = vhost->ka_interval;
|
||||
alive.keepalivetime = vhost->ka_time * 1000;
|
||||
alive.keepaliveinterval = vhost->ka_interval * 1000;
|
||||
|
||||
if (WSAIoctl(fd, SIO_KEEPALIVE_VALS, &alive, sizeof(alive),
|
||||
NULL, 0, &dwBytesRet, NULL, NULL))
|
||||
|
|
Loading…
Add table
Reference in a new issue