strange behaviour

0 views
Skip to first unread message

Massimo

unread,
Jan 20, 2012, 1:31:45 PM1/20/12
to apa...@googlegroups.com
Hi all,

it happens that when sendmail or hmailer loops 2 times to send a form-mail
(e.g. if the smtpd is busy or for other reasons)

apache do not answer anymore to any other http request
it seems like "frozen"

after hmailer or sendmail have finished the loop apache start again to
answer correctly http requests

any idea how to avoid this problem?
why apache stop answering if a child get in loop for any reason?

thanks
bye

massimo s.

Paul Smedley

unread,
Jan 20, 2012, 5:01:07 PM1/20/12
to apa...@googlegroups.com
Hi Massimo,

Is there anything in the log from when this happens? I wonder how
apache2/apr spawn a child process..

Cheers,

Paul

Massimo

unread,
Jan 20, 2012, 5:06:53 PM1/20/12
to apa...@googlegroups.com
a php form call the, i guess, mail function

the php.ini call a rexx that parse the data from php and launch hmailer (or sendmail)

if hmailer isn't able to contact the smtpD waite 1 minute to retry to send the email
in this minute apache stop answering to any http request

after the mail is sent, it start answering again


massimo

Paul Smedley

unread,
Jan 20, 2012, 5:09:58 PM1/20/12
to apa...@googlegroups.com
ahh ok, so it's PHP not apache2 - will have a look at the source - there
are various ways to spawn a process - some allow program execution to
continue, others wait for the process to complete before continuing...

Massimo

unread,
Jan 21, 2012, 8:33:46 AM1/21/12
to apa...@googlegroups.com

Il 20/01/2012 23.09, Paul Smedley ha scritto:
> ahh ok, so it's PHP not apache2 - will have a look at the source - there are various ways to
> spawn a process - some allow program execution to continue, others wait for the process to
> complete before continuing...

thanks a lot
since it's not just an httpd child that stop answering to one http request
but apache stop to answer to all requests since the email is sent out

that's a real big problem

massimo

Reply all
Reply to author
Forward
0 new messages