473,236 Members | 1,513 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,236 software developers and data experts.

Apache too graceful?

Hi all,

(this is a PHP question...honest!)

I'm getting a lot of httpds hanging around in status G for a v. long time
(apache 1.3.27) what concerns me is that they all seem to have just run the
same script...one which does things a little strangely.

It (proxy.php) proxies a request to another script on the site (process.php)
by opening a socket, and sending an HTTP request down it, then reading back
the response....up to a point. The other script takes a long time to run -
approx 30 seconds, but is able to tell the proxy whether it will succeed
after approx 2 seconds. When 'proxy.php' receives this notification from
'process.php' it closes the socket, and exits. Since 'process.php' ignores
user abort, it keeps running until completed.

So despite the fact that PHP has exited, the client has disconnected, the
httpd process which ran proxy.php is still in status G.

Anybody any clues why? I couldn't find anything useful on apache.org. Google
just turns up thousands of server-status pages and pages about mod_status.

TIA,

C.
Jul 17 '05 #1
2 1545
If you're trapping signals in process.php, are you sure it's really
closing? Does netstat show a lot of stuff in close_wait or some
similar state?

Jul 17 '05 #2
Matt wrote:
If you're trapping signals in process.php, are you sure it's really
closing? Does netstat show a lot of stuff in close_wait or some
similar state?


Not a significant amount. It's running the register_shutdown_function within
PHP, then logging the request in the access_log, which rather suggests it's
trying to finish.

C.
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Jacob H | last post by:
Hello all, I'm nearing the completion of my first graphical console game and my thoughts have turned to the subject of gracefully handling runtime errors. During development I like to not handle...
20
by: MickeyBob | last post by:
How does one detect the EOF gracefully? Assuming I have a pickle file containing an unknown number of objects, how can I read (i.e., pickle.load()) until the EOF is encountered without generating...
2
by: dchisolm | last post by:
Apache/2.0.53 RHE3 WS PHP 5.1.0-dev --enable-debug libxml 2.6.20 Hey, I decided to give the latest PHP5 a try since it's including some updates I really need (PDO_SqLite, Soap, etc yayy) and...
4
by: Jon Maz | last post by:
Hi All, I'm getting to grips with PHP and Apache (on Windows for current development, production site will be on Linux), and have a simple (I hope!) request. When you change the httpd.conf...
6
by: black francis | last post by:
hello all, i`m trying to restart apache from php but have failed completely. has anyone sucesfully done it? i'm currently able to execute other unix commands from php adding the proper...
9
by: walterbyrd | last post by:
I think I have read somewhere that using Python to develop web-applications requires some restarting of the Apache server, whereas PHP does not. Also, I seem to remember reading something about...
11
by: monomaniac21 | last post by:
Hi all Ive just installed php 5 on my Apache server and its not recognizing my code when its written between <? ?only <?php ?will work. How can i edit the httpd.conf file to allow this? Kind...
3
machismo350
by: machismo350 | last post by:
In order to communicate on new certificates,i am doing an apache restart (using apachectl -k graceful) ,which should take the new .crt & .key for communication but this takes more time and any...
2
by: csgonan | last post by:
I have a new 64 bit apache 2.2.4 server on Solaris 10 with openssl 0.9.8e. When I DO NOT have the ssl.conf file included and I "apachectl graceful" to apache, all my processes that are gracefully...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.