{"schema":"libjg2-1",
"vpath":"/git/",
"avatar":"/git/avatar/",
"alang":"",
"gen_ut":1752655318,
"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":"a200ec356dc1d54915021c08b5131f97",
"commit": {"type":"commit",
"time": 1582306361,
"time_ofs": 0,
"oid_tree": { "oid": "5b118265f54f734711f771a0dc76c3505c50e9bf", "alias": []},
"oid":{ "oid": "e9fd43e04191a979cfac27bfb763a936150dad7c", "alias": []},
"msg": "raw file: drain POLLIN before handling close as needed for pipes",
"sig_commit": { "git_time": { "time": 1582306361, "offset": 0 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },
"sig_author": { "git_time": { "time": 1581617811, "offset": 0 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" }},
"body": "raw file: drain POLLIN before handling close as needed for pipes"
,
"diff": "diff --git a/lib/roles/raw-file/ops-raw-file.c b/lib/roles/raw-file/ops-raw-file.c\nindex 67660e6..cb7160d 100644\n--- a/lib/roles/raw-file/ops-raw-file.c\n+++ b/lib/roles/raw-file/ops-raw-file.c\n@@ -50,7 +50,8 @@ rops_handle_POLLIN_raw_file(struct lws_context_per_thread *pt, struct lws *wsi,\n \t}\n \n \tif (pollfd-\u003erevents \u0026 LWS_POLLHUP)\n-\t\treturn LWS_HPI_RET_PLEASE_CLOSE_ME;\n+\t\tif (!(pollfd-\u003erevents \u0026 LWS_POLLIN))\n+\t\t\treturn LWS_HPI_RET_PLEASE_CLOSE_ME;\n \n \treturn LWS_HPI_RET_HANDLED;\n }\n","s":{"c":1752655318,"u": 1471}}
],"g": 2794,"chitpc": 0,"ehitpc": 0,"indexed":0
,
"ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}