Prevent memory exhaustion by sending lots of data.
Also add a test to httpbasics.py.
Closes #6425
416 | @@ -414,6 +417,7 @@ bool InitHTTPServer() 417 | } 418 | 419 | evhttp_set_timeout(http, GetArg("-rpcservertimeout", DEFAULT_HTTP_SERVER_TIMEOUT)); 420 | + evhttp_set_max_headers_size(http, MAX_HEADERS_SIZE);
Wait, this PR is only further restricting the headers. Shouldn't the title be then: "http: Restrict maximum size of headers"
This should also be restricting the body size, but to something much larger.
Edit: derp it is below!
ut ACK - agree "http + headers" in commit msg seemed to imply http body
Prevent memory exhaustion by sending lots of data.
Also add a test to `httpbasics.py`.
Closes #6425
Updated the ocmmit message
utACK
ACK
utACK