Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache problem with script returning more than 8000 bytes
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
GurliGebis
Retired Dev
Retired Dev


Joined: 08 Aug 2002
Posts: 509

PostPosted: Fri Nov 25, 2005 8:26 pm    Post subject: Apache problem with script returning more than 8000 bytes Reply with quote

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
View user's profile Send private message
GurliGebis
Retired Dev
Retired Dev


Joined: 08 Aug 2002
Posts: 509

PostPosted: Fri Nov 25, 2005 8:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Fri Nov 25, 2005 9:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
GurliGebis
Retired Dev
Retired Dev


Joined: 08 Aug 2002
Posts: 509

PostPosted: Fri Nov 25, 2005 9:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Fri Nov 25, 2005 10:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
GurliGebis
Retired Dev
Retired Dev


Joined: 08 Aug 2002
Posts: 509

PostPosted: Fri Nov 25, 2005 10:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
GurliGebis
Retired Dev
Retired Dev


Joined: 08 Aug 2002
Posts: 509

PostPosted: Fri Nov 25, 2005 11:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum