{"schema":"libjg2-1",
"vpath":"/git/",
"avatar":"/git/avatar/",
"alang":"",
"gen_ut":1745561018,
"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":"cfda27a45fcfea2e0db8dde66b17b880",
"commit": {"type":"commit",
"time": 1618634530,
"time_ofs": 60,
"oid_tree": { "oid": "1f227ce2688da89420d60001428522060685b9a8", "alias": []},
"oid":{ "oid": "af1a79c3e5a6f0f0730624ebed4c082852060731", "alias": []},
"msg": "client: make sure we get CCE if timeout on server reply",
"sig_commit": { "git_time": { "time": 1618634530, "offset": 60 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },
"sig_author": { "git_time": { "time": 1618634352, "offset": 60 }, "name": "Jin Wang", "email": "jnwang@lab126.com", "md5": "50add15b40b5ce9c85668fdb2b31329c" }},
"body": "client: make sure we get CCE if timeout on server reply\n\nIf facing a captive portal, we may seem to get a tcp level connection okay\nbut find that communication is silently dropped, leading to us timing out\nin LRS_WAITING_SERVER_REPLY.\n\nIf so, we need to handle it as a connection fail in order to satisfy at\nleast Captive Portal detection.\n"
,
"diff": "diff --git a/lib/core-net/wsi-timeout.c b/lib/core-net/wsi-timeout.c\nindex 19da524..44da7c4 100644\n--- a/lib/core-net/wsi-timeout.c\n+++ b/lib/core-net/wsi-timeout.c\n@@ -114,6 +114,9 @@ lws_sul_wsitimeout_cb(lws_sorted_usec_list_t *sul)\n \tif (lwsi_state(wsi) \u003d\u003d LRS_WAITING_SSL)\n \t\tlws_inform_client_conn_fail(wsi,\n \t\t\t(void *)\u0022Timed out waiting SSL\u0022, 21);\n+\tif (lwsi_state(wsi) \u003d\u003d LRS_WAITING_SERVER_REPLY)\n+\t\tlws_inform_client_conn_fail(wsi,\n+\t\t\t(void *)\u0022Timed out waiting server reply\u0022, 30);\n #endif\n \n \tlws_context_lock(cx, __func__);\n","s":{"c":1745561018,"u": 10176}}
],"g": 11048,"chitpc": 0,"ehitpc": 0,"indexed":0
,
"ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}