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);
This should also be restricting the body size, but to something much larger.
Edit: derp it is below!
Prevent memory exhaustion by sending lots of data.
Also add a test to `httpbasics.py`.
Closes #6425