{"schema":"libjg2-1",
"vpath":"/git/",
"avatar":"/git/avatar/",
"alang":"",
"gen_ut":1713537751,
"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":"89707399edcbf17a6b5fdaf3519aea47",
"commit": {"type":"commit",
"time": 1509882034,
"time_ofs": 480,
"oid_tree": { "oid": "205acd9a9fc6c800d43c13a22ff289c3cf266350", "alias": []},
"oid":{ "oid": "8dcb4ca753efe08adfd94ce0348bde2f01a53cb4", "alias": []},
"msg": "h2: never send more than file length",
"sig_commit": { "git_time": { "time": 1509882034, "offset": 480 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" },
"sig_author": { "git_time": { "time": 1509882034, "offset": 480 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" }},
"body": "h2: never send more than file length\n"
,
"diff": "diff --git a/lib/output.c b/lib/output.c\nindex ed47524..c8b05cb 100644\n--- a/lib/output.c\n+++ b/lib/output.c\n@@ -507,7 +507,7 @@ send_raw:\n \t\t\t (wp \u0026 0x1f) \u003d\u003d LWS_WRITE_HTTP_FINAL) \u0026\u0026\n \t\t\t wsi-\u003eu.http.tx_content_length) {\n \t\t\t\twsi-\u003eu.http.tx_content_remain -\u003d len;\n-\t\t\t\tlwsl_info(\u0022%s: content_remain \u003d %llu\u005cn\u0022, __func__,\n+\t\t\t\tlwsl_info(\u0022%s: wsi %p: tx_content_remain \u003d %llu\u005cn\u0022, __func__, wsi,\n \t\t\t\t\t (unsigned long long)wsi-\u003eu.http.tx_content_remain);\n \t\t\t\tif (!wsi-\u003eu.http.tx_content_remain) {\n \t\t\t\t\tlwsl_info(\u0022%s: selecting final write mode\u005cn\u0022, __func__);\n@@ -639,6 +639,9 @@ LWS_VISIBLE int lws_serve_http_file_fragment(struct lws *wsi)\n \n \t\tposs \u003d context-\u003ept_serv_buf_size - n - LWS_H2_FRAME_HEADER_LENGTH;\n \n+\t\tif (poss \u003e wsi-\u003eu.http.tx_content_remain)\n+\t\t\tposs \u003d wsi-\u003eu.http.tx_content_remain;\n+\n \t\t/*\n \t\t * if there is a hint about how much we will do well to send at one time,\n \t\t * restrict ourselves to only trying to send that.\n","s":{"c":1713537751,"u": 1627}}
],"g": 2017,"chitpc": 0,"ehitpc": 0,"indexed":0
,
"ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}