{"schema":"libjg2-1",
"vpath":"/git/",
"avatar":"/git/avatar/",
"alang":"",
"gen_ut":1752654862,
"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":"7db32b279119ba4a12aaa4012b51a5fc",
"commit": {"type":"commit",
"time": 1498631229,
"time_ofs": 480,
"oid_tree": { "oid": "bc8ba9ef073b2732a9bef0199f96b1c4950936fe", "alias": []},
"oid":{ "oid": "a637d8f41f520d33356d16b9946d58b0073fdc12", "alias": []},
"msg": "file serve: defer transaction completed to HTTP_FILE_COMPLETION",
"sig_commit": { "git_time": { "time": 1498631229, "offset": 480 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },
"sig_author": { "git_time": { "time": 1498631229, "offset": 480 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" }},
"body": "file serve: defer transaction completed to HTTP_FILE_COMPLETION"
,
"diff": "diff --git a/lib/server.c b/lib/server.c\nindex 76c914c..3bfd1de 100644\n--- a/lib/server.c\n+++ b/lib/server.c\n@@ -2379,12 +2379,15 @@ try_pollout:\n \t\t\tbreak;\n \t\t}\n \n-\t\t/* \u003e0 \u003d\u003d completion, \u003c0 \u003d\u003d error */\n+\t\t/* \u003e0 \u003d\u003d completion, \u003c0 \u003d\u003d error\n+\t\t *\n+\t\t * We'll get a LWS_CALLBACK_HTTP_FILE_COMPLETION callback when\n+\t\t * it's done. That's the case even if we just completed the\n+\t\t * send, so wait for that.\n+\t\t */\n \t\tn \u003d lws_serve_http_file_fragment(wsi);\n-\t\tif (n \u003c 0 || (n \u003e 0 \u0026\u0026 lws_http_transaction_completed(wsi))) {\n-\t\t\tlwsl_info(\u0022completed\u005cn\u0022);\n+\t\tif (n \u003c 0)\n \t\t\tgoto fail;\n-\t\t}\n \n \t\tbreak;\n \n","s":{"c":1752654862,"u": 2524}}
],"g": 3383,"chitpc": 0,"ehitpc": 0,"indexed":0
,
"ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}