473,602 Members | 2,774 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Apache too graceful?

Hi all,

(this is a PHP question...hone st!)

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 1559
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_shutdo wn_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
1436
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 exceptions, so that program execution will halt and I can immediately read the traceback to see what's up. Once the bugs are more or less worked out, I have a system ready wherein any exceptions are caught and an attempt is made to write the...
20
14916
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 an EOF exception? Thanks for any assistance. MickeyBob
2
2924
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 after having to upgrade libxml I'm getting the following warning when performing a graceful restart with Apache.
4
6654
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 file and restart Apache, if you have made an error you simply get a popup saying that there has been an error, but giving no useful information about what or where the error is (on Windows anyway).
6
3547
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 permissions to the sudo file but apache refuses to restart. here's the pseudo-script:
9
1937
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 PHP being able to recover from Apache restarting more easily than Python. I am not trying to suggest anything here. I'm just asking.
11
2714
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 regards Marc
3
3506
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 request coming for the corresponding host on which the configuration were done fails,is there any other way i can have apache take up the config changes quickly and respond to requests.
2
4261
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 shutdown are shown by a dash (-). When I have the Include line for the ssl.conf file uncommented, the number of Gs never changes, like it is locked in the graceful shutdown. I have prefork compiled in but not worker or event if that makes a...
0
8401
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8054
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
6730
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
5867
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5440
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3900
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
3944
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2418
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1510
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.