PHP file_get_contents errors at 128K -


i searching clues why post requests larger 128k dying returned 500 or 404.

the php script includes similar portion

$arcontext['http']['timeout'] = 60; $context = stream_context_create($arcontext); $filecontents = file_get_contents('php://input', 0, $context); syslog(log_info, "file length = " . strlen($filecontents); 

server side:

post_max_size = 8m

memory_limit = 32m

syslog shows file length 131702 on these failed posts.

at point, seems problem satellite connections, not sure how plays problem.

wireshark serverside includes:

post /farms/somewhere.php?id=lalala http/1.1 host: nowhere.net content-length: 96 expect: 100-continue connection: keep-alive  .g.c.!.......&.>...&..k..-.)..^b?.(..4xh..veu..ku..w...i..xr.&c...+^h...`.............x..c=.2...http/1.1 100 continue  http/1.1 200 ok date: fri, 27 may 2016 22:32:39 gmt server: apache/2.2.31 (unix) mod_ssl/2.2.31 openssl/1.0.1e-fips mod_bwlimited/1.4 x-powered-by: php/5.5.30 cache-control: no-transform keep-alive: timeout=5, max=100 connection: keep-alive transfer-encoding: chunked content-type: text/html; charset=windows-1252  10 ."5.......e..>.. 0  post /farms/somewhere.php?id=lalala http/1.1 host: nowhere.net content-length: 1745376 expect: 100-continue  http/1.1 100 continue  .g.c.!.......&.>.--->data-->y.i*#whttp/1.1 500 internal server error date: fri, 27 may 2016 22:32:41 gmt server: apache/2.2.31 (unix) mod_ssl/2.2.31 openssl/1.0.1e-fips mod_bwlimited/1.4 content-length: 798 connection: close content-type: text/html; charset=iso-8859-1  <!doctype html public "-//ietf//dtd html 2.0//en"> <html><head> <title>500 internal server error</title> </head><body> <h1>internal server error</h1> <p>the server encountered internal error or misconfiguration , unable complete request.</p> <p>please contact server administrator,  webmaster@nowhere.net , inform them of time error occurred, , might have done may have caused error.</p> <p>more information error may available in server error log.</p> <p>additionally, 500 internal server error error encountered while trying use errordocument handle request.</p> <hr> <address>apache/2.2.31 (unix) mod_ssl/2.2.31 openssl/1.0.1e-fips mod_bwlimited/1.4 server @ nowhere.net port 80</address> </body></html> 

apache error logs show

[sat may 28 10:47:53 2016] [error] [client nn.nn.176.108] handler (null) returned invalid result code 70008 [sat may 28 10:47:53 2016] [error] [client nn.nn.176.108] file not exist: /home/somewhere/public_html/500.shtml 

it seems h___net inserting connection: keep-alive in header.


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -

java - Digest auth with Spring Security using javaconfig -