RE: Apache-read timed out

2001-02-20 Thread Deja User

I was just wondering if this problem could be because of CGI.pm scripts , i am running 
some plain CGI scripts and mod perl scripts,in some of the scripts i have the 
traditional read function which reads from STDIN (perl 'read' function) .

Pls help ...

thanks,
Sachin

Date: Thu, 15 Feb 2001 09:13:09 -0800 (PST)
From: Sachin Lakhanpal [EMAIL PROTECTED]
Subject: RE: Apache-read timed out
Cc: [EMAIL PROTECTED]

yes i have tried all those time out parameters . :(

sachin

--- Geoffrey Young [EMAIL PROTECTED] wrote:
 
 
  -Original Message-
  From: Deja User [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, February 14, 2001 7:36 PM
  To: [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Subject: Apache-read timed out
  
  
  Hello ,
  
I am getting "Apache-read timed out messages in
 my 
  error_log,now i have been looking at this problem
 for a while 
  now before posting it for help, whats happening is
 if i test 
  my application from within the network , because
 the 
  connection being very fast i am not having any
 problems , but 
  when i try to do the same thing from the external
 network 
  over a dial up line i get this error message in
 the error 
  logs and the script gets killed
  
What we are doing is we are uploading large amts
 of data 
  using HTTP POSTS ,so at the server end i am using
 the 
  Apache-read function to get the body of the post.
  
 
 did you try playing with $r-reset_timeout and/or
 the Apache TimeOut
 directive?
 
 HTH
 
 --Geoff  


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/





--== Sent via Deja.com ==--
http://www.deja.com/





RE: Apache-read timed out

2001-02-15 Thread Geoffrey Young



 -Original Message-
 From: Deja User [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 14, 2001 7:36 PM
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Apache-read timed out
 
 
 Hello ,
 
   I am getting "Apache-read timed out messages in my 
 error_log,now i have been looking at this problem for a while 
 now before posting it for help, whats happening is if i test 
 my application from within the network , because the 
 connection being very fast i am not having any problems , but 
 when i try to do the same thing from the external network 
 over a dial up line i get this error message in the error 
 logs and the script gets killed
 
   What we are doing is we are uploading large amts of data 
 using HTTP POSTS ,so at the server end i am using the 
 Apache-read function to get the body of the post.
 

did you try playing with $r-reset_timeout and/or the Apache TimeOut
directive?

HTH

--Geoff  



RE: Apache-read timed out

2001-02-15 Thread Sachin Lakhanpal

yes i have tried all those time out parameters . :(

sachin

--- Geoffrey Young [EMAIL PROTECTED] wrote:
 
 
  -Original Message-
  From: Deja User [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, February 14, 2001 7:36 PM
  To: [EMAIL PROTECTED]
  Cc: [EMAIL PROTECTED]
  Subject: Apache-read timed out
  
  
  Hello ,
  
I am getting "Apache-read timed out messages in
 my 
  error_log,now i have been looking at this problem
 for a while 
  now before posting it for help, whats happening is
 if i test 
  my application from within the network , because
 the 
  connection being very fast i am not having any
 problems , but 
  when i try to do the same thing from the external
 network 
  over a dial up line i get this error message in
 the error 
  logs and the script gets killed
  
What we are doing is we are uploading large amts
 of data 
  using HTTP POSTS ,so at the server end i am using
 the 
  Apache-read function to get the body of the post.
  
 
 did you try playing with $r-reset_timeout and/or
 the Apache TimeOut
 directive?
 
 HTH
 
 --Geoff  


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/



RE: Apache-read timed out

2001-02-15 Thread Tom Mornini

On Thu, 15 Feb 2001, Geoffrey Young wrote:

I am getting "Apache-read timed out messages in my 
  error_log,now i have been looking at this problem for a while 
  now before posting it for help, whats happening is if i test 
  my application from within the network , because the 
  connection being very fast i am not having any problems , but 
  when i try to do the same thing from the external network 
  over a dial up line i get this error message in the error 
  logs and the script gets killed

I had this problem and it drove me completely nuts until I figured it out.

In my case, in a front-end-proxy/back-end-mod_perl configuration it turned
out to be having a lower timeout value for the back-end Apaches than for
the front-end Apaches.

I had set it this way to try and free up back-end servers (which are more
valuable than front-end servers) more quickly in the event of a timeout.

It didn't work out that way! :-) I now run 300 seconds on the front-ends
and 400 on the back-ends, and Apache-read timeouts no longer cause
problems.

-- 
-- Tom Mornini
-- InfoMania Printing and Prepress




RE: Apache-read timed out

2001-02-15 Thread Sachin Lakhanpal

How do i resolve this issue because this is happening
after the server has been running for a while , i have
tried increasing the timeout parameter value to more
than 500 and still dosen't work ?

sachin
--- Tom Mornini [EMAIL PROTECTED] wrote:
 On Thu, 15 Feb 2001, Geoffrey Young wrote:
 
 I am getting "Apache-read timed out messages
 in my 
   error_log,now i have been looking at this
 problem for a while 
   now before posting it for help, whats happening
 is if i test 
   my application from within the network , because
 the 
   connection being very fast i am not having any
 problems , but 
   when i try to do the same thing from the
 external network 
   over a dial up line i get this error message in
 the error 
   logs and the script gets killed
 
 I had this problem and it drove me completely nuts
 until I figured it out.
 
 In my case, in a front-end-proxy/back-end-mod_perl
 configuration it turned
 out to be having a lower timeout value for the
 back-end Apaches than for
 the front-end Apaches.
 
 I had set it this way to try and free up back-end
 servers (which are more
 valuable than front-end servers) more quickly in the
 event of a timeout.
 
 It didn't work out that way! :-) I now run 300
 seconds on the front-ends
 and 400 on the back-ends, and Apache-read timeouts
 no longer cause
 problems.
 
 -- 
 -- Tom Mornini
 -- InfoMania Printing and Prepress
 


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/



Re: Apache-read timed out?

1999-10-31 Thread Doug MacEachern

sounds like somebody has already read the POST data before your code is
reached.

On Fri, 22 Oct 1999, Marler, Gordon wrote:

 I'm running mod_perl 1.21, Apache 1.39 on Solaris 2.5.1.
 
 I'm using the proxy example from pp. 374-381 of the "Writing Apache Modules"
 book, and I've come up with a strange case in handling a POST request in the
 following part of the code (explained on page 377).  Here's my doctored
 version of the code snippet:
 
  # Copy POST data, if any
   if ($r-method eq 'POST') {
 $log-debug("Posting!");
 my $len = $r-header_in('Content-length');
 $log-debug("Got the content length for POSTing: $len");
 my $buf;
 $r-read($buf,$len);
 $log-debug("Read the content for POSTing into a buffer");
 $request-content($buf);
 $log-debug("Copied POSTed data into the LWP request");
   }
 
 Turns out that this code hangs (just for this particular POST) at the
 $r-read($buf,$len) for a few minutes, then I get the
 "Apache-read timed out" message in the Apache error log.
 
 Any ideas in what I could look for in the URI or the headers that might give
 me a clue on why this is happening or how I could debug this?  Since the
 Content-length is greater than 0, I can't imagine why this would time out!
 I'm sure this is a special case, since most POSTs work just fine with this
 code.
 
 Gordon Marler
 ATT Wireless Services, WLTG
 Unix System Architect
 [EMAIL PROTECTED]
 Phone: 425 702 2980
 FAX: 425 702 2568