{"schema":"libjg2-1",
"vpath":"/git/",
"avatar":"/git/avatar/",
"alang":"",
"gen_ut":1746504158,
"reponame":"libwebsockets",
"desc":"libwebsockets lightweight C networking library",
"owner": { "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },"url":"https://libwebsockets.org/repo/libwebsockets",
"f":3,
"items": [
{"schema":"libjg2-1",
"cid":"6c61ae30b703e6dc6550c36017268e25",
"commit": {"type":"commit",
"time": 1547337296,
"time_ofs": 480,
"oid_tree": { "oid": "041e641c9fef29577126767df4ee1c1e9bd11afb", "alias": []},
"oid":{ "oid": "b4161f5e97e73dae50511c34a52a08e93a6d0383", "alias": []},
"msg": "windows: socket keepalive valid is ms",
"sig_commit": { "git_time": { "time": 1547337296, "offset": 480 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },
"sig_author": { "git_time": { "time": 1547336047, "offset": 480 }, "name": "Bitomaxsp", "email": "bitomaxsp@user.github.invalid", "md5": "739012f8db239ab8c1ae85103fb0a811" }},
"body": "windows: socket keepalive valid is ms\n\nhttps://github.com/warmcat/libwebsockets/issues/1477"
,
"diff": "diff --git a/lib/plat/windows/windows-sockets.c b/lib/plat/windows/windows-sockets.c\nindex bf09350..3772cfb 100644\n--- a/lib/plat/windows/windows-sockets.c\n+++ b/lib/plat/windows/windows-sockets.c\n@@ -64,8 +64,8 @@ lws_plat_set_socket_options(struct lws_vhost *vhost, lws_sockfd_type fd,\n \t\t\treturn 1;\n \n \t\talive.onoff \u003d TRUE;\n-\t\talive.keepalivetime \u003d vhost-\u003eka_time;\n-\t\talive.keepaliveinterval \u003d vhost-\u003eka_interval;\n+\t\talive.keepalivetime \u003d vhost-\u003eka_time * 1000;\n+\t\talive.keepaliveinterval \u003d vhost-\u003eka_interval * 1000;\n \n \t\tif (WSAIoctl(fd, SIO_KEEPALIVE_VALS, \u0026alive, sizeof(alive),\n \t\t\t NULL, 0, \u0026dwBytesRet, NULL, NULL))\n","s":{"c":1746443705,"u": 3024}}
],"g": 1201,"chitpc": 0,"ehitpc": 0,"indexed":0
,
"ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "7d0a"}