File uploading connection issue
zek opened this issue · comments
I'm sending a file upload request to hello-world example with postman.
First request is ok but when I send second request it just stuck at "Loading" screen.
Second request never reaches to our server and after for a while I get "Could not get any response".
Then in console I see that connection is closed.
[2018-08-27 08:58:50] server.DEBUG: Close 127.0.0.1:61568 #199 [] []
Is this normal? How may I solve that issue?
Maybe this is related to "Keep-Alive" header?
OK. This is because of file size is too big as it is explained here ( https://amphp.org/http-server/performance#body )
$request->getBody()->increaseSizeLimit(10 * 1024 ** 2);
Solves the problem.