Project homepage Mailing List  Warmcat.com  API Docs  Github Mirror 
{"schema":"libjg2-1", "vpath":"/git/", "avatar":"/git/avatar/", "alang":"", "gen_ut":1759520427, "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":"21c21b1444868b6a28a9bfa777c4f33c", "commit": {"type":"commit", "time": 1514486465, "time_ofs": 480, "oid_tree": { "oid": "2d0b392786ccb3a05a6b93646f6dd0210d7d2a65", "alias": []}, "oid":{ "oid": "4cee34c0d06a6f43baf22260ba906283fce5e3d4", "alias": []}, "msg": "h2: adapt oversize POST test now we handle blocks in parser not byte-at-a-time", "sig_commit": { "git_time": { "time": 1514486465, "offset": 480 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" }, "sig_author": { "git_time": { "time": 1514486465, "offset": 480 }, "name": "Andy Green", "email": "andy@warmcat.com", "md5": "c50933ca2aa61e0fe2c43d46bb6b59cb" }}, "body": "h2: adapt oversize POST test now we handle blocks in parser not byte-at-a-time" , "diff": "diff --git a/lib/http2/http2.c b/lib/http2/http2.c\nindex e5e5e4a..90e821f 100644\n--- a/lib/http2/http2.c\n+++ b/lib/http2/http2.c\n@@ -1478,7 +1478,7 @@ lws_h2_parser(struct lws *wsi, unsigned char *in, lws_filepos_t inlen,\n \t\t\tif (lws_hdr_total_length(h2n-\u003eswsi,\n \t\t\t\t\t\t WSI_TOKEN_HTTP_CONTENT_LENGTH) \u0026\u0026\n \t\t\t h2n-\u003eswsi-\u003ehttp.rx_content_length \u0026\u0026\n-\t\t\t h2n-\u003eswsi-\u003ehttp.rx_content_remain \u003d\u003d 1 \u0026\u0026 /* last */\n+\t\t\t h2n-\u003eswsi-\u003ehttp.rx_content_remain \u003c inlen + 1 \u0026\u0026 /* last */\n \t\t\t h2n-\u003einside \u003c h2n-\u003elength) { /* unread data in frame */\n \t\t\t\tlws_h2_goaway(wsi, H2_ERR_PROTOCOL_ERROR,\n \t\t\t\t\t \u0022More rx than content_length told\u0022);\n@@ -1488,7 +1488,11 @@ lws_h2_parser(struct lws *wsi, unsigned char *in, lws_filepos_t inlen,\n \t\t\th2n-\u003eswsi-\u003eouter_will_close \u003d 1;\n \t\t\tn \u003d lws_read(h2n-\u003eswsi, in - 1, inlen + 1);\n \t\t\th2n-\u003eswsi-\u003eouter_will_close \u003d 0;\n-\t\t\tif (n \u003c 0)\n+\t\t\t/*\n+\t\t\t * can return 0 in POST body with content len\n+\t\t\t * exhausted somehow.\n+\t\t\t */\n+\t\t\tif (n \u003c\u003d 0)\n \t\t\t\tgoto fail;\n \n \t\t\tinlen -\u003d n - 1;\n","s":{"c":1759520427,"u": 1805}} ],"g": 2632,"chitpc": 0,"ehitpc": 0,"indexed":0 , "ab": 0, "si": 0, "db":0, "di":0, "sat":0, "lfc": "0000"}