View previous topic :: View next topic |
Author |
Message |
GurliGebis Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/7985533233e56914b44e8f.jpg)
Joined: 08 Aug 2002 Posts: 509
|
Posted: Fri Nov 25, 2005 8:26 pm Post subject: Apache problem with script returning more than 8000 bytes |
|
|
I'm writing a webservice in php, one of the functions return an array.
If the resulting XML is larger then 8000 bytes I get this in my log file, and the client fails:
Code: | [Fri Nov 25 19:49:34 2005] [info] [client 192.168.3.8] (32)Broken pipe: core_output_filter: writing data to the network |
I cannot figure if this is an apache or a php issue, but it's really annoying.
Any ideas? _________________ Queen Rocks.
Last edited by GurliGebis on Fri Nov 25, 2005 9:00 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
GurliGebis Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/7985533233e56914b44e8f.jpg)
Joined: 08 Aug 2002 Posts: 509
|
Posted: Fri Nov 25, 2005 8:51 pm Post subject: |
|
|
Code: | 192.168.3.8 - - [25/Nov/2005:20:47:41 +0000] "POST /new/default.php HTTP/1.1" 200 8000
192.168.3.8 - - [25/Nov/2005:20:47:42 +0000] "POST /new/default.php HTTP/1.1" 200 513
192.168.3.8 - - [25/Nov/2005:20:48:01 +0000] "POST /new/default.php HTTP/1.1" 200 8001
192.168.3.8 - - [25/Nov/2005:20:48:01 +0000] "POST /new/default.php HTTP/1.1" 500 278 |
As soon as a call has returned over 8000 bytes, the next call returns an error code 500, and gives that error in the error_log file. _________________ Queen Rocks. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
think4urs11 Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/8534934054bad29b51e5fa.jpg)
Joined: 25 Jun 2003 Posts: 6659 Location: above the cloud
|
Posted: Fri Nov 25, 2005 9:27 pm Post subject: |
|
|
any chance you have set that one? http://httpd.apache.org/docs/2.0/mod/core.html#limitrequestfieldsize
you might also check the other Limit*-statements _________________ Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
GurliGebis Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/7985533233e56914b44e8f.jpg)
Joined: 08 Aug 2002 Posts: 509
|
Posted: Fri Nov 25, 2005 9:38 pm Post subject: |
|
|
nope, haven't got that one set.
The problem is not that amount of data the client posts to the server, the problem is when the function on the server wants to return more than 8000 bytes to the client. It works, but then when I make a request again (for any function), I get an error 500. _________________ Queen Rocks. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
think4urs11 Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
![](images/avatars/8534934054bad29b51e5fa.jpg)
Joined: 25 Jun 2003 Posts: 6659 Location: above the cloud
|
Posted: Fri Nov 25, 2005 10:02 pm Post subject: |
|
|
next try
/etc/apache2/php.ini wrote: | ...
; Maximum size of POST data that PHP will accept.
post_max_size = 8M
... |
tried to increase that one? _________________ Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
GurliGebis Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/7985533233e56914b44e8f.jpg)
Joined: 08 Aug 2002 Posts: 509
|
Posted: Fri Nov 25, 2005 10:25 pm Post subject: |
|
|
yep, didn't help.
1: it says 8M, this is only 8K
2: it is not the data I send to php, it's the data php sends back thats the problem.
I'm beginning to suspect this to be a php or apache bug _________________ Queen Rocks. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
GurliGebis Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/7985533233e56914b44e8f.jpg)
Joined: 08 Aug 2002 Posts: 509
|
Posted: Fri Nov 25, 2005 11:06 pm Post subject: |
|
|
Just tried and moved it to another machine with the same config, and here it works fine
There has to be something else wrong. _________________ Queen Rocks. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|