Re: Bug #9427 Updated: PHP hangs when packets aren't returned when using session_start()
| From: | Rich W. Argo | Date: | Tue, 16 Oct 2001 14:18:16 +0000 |
| Subject: | Re: Bug #9427 Updated: PHP hangs when packets aren't returned when using session_start() | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-68043@lists.php.net to get a copy of this message | ||
I agree except that PHP hangs eternally and never times out. That *is* a
software problem.
From: Bug Database <php-dev@lists.php.net> on 10/16/2001 12:40 AM
To: Rich W. Argo/MCLEOD@MCLEOD
cc:
Subject: Bug #9427 Updated: PHP hangs when packets aren't returned when using
session_start()
ID: 9427
Updated by: ssb
Reported By: rargo@mcleodusa.com
Old Status: Critical
Status: Closed
Bug Type: Session related
Operating System: Linux Mandrake 7.2
PHP Version: 4.0.4pl1
New Comment:
I'm not sure what PHP should do here. If an external library (mysql) does a
connect and your firewall drops packages, that's a configuration problem and
IMHO not something PHP should go to great efforts to try handling. I think you
will find that most software behaves this way (hangs until tcp connect times
out) when facing a similar setup.
Previous Comments:
------------------------------------------------------------------------
[2001-05-07 12:49:54] derick@php.net
Marking as fix before 4.0.6
------------------------------------------------------------------------
[2001-02-23 13:06:46] rargo@mcleodusa.com
Short script:
<? mysql_connect("10.0.0.244", "user", "passwd");?>
Really any socket connection code.
Configure Command:
'./configure' '--with-apxs=/usr/sbin/apxs' '--with-mysql=/usr'
'--with-mcrypt=../mcrypt-2.2.6' '--with-mhash=../mhash-0.8.4'
'--with-ldap'
'--with-fdftk' '--with-pdflib' '--with-zlib' '--with-gd'
'--with-pspell'
'--with-oci8' '--with-java=/opt/IBMJava2-13' '--enable-sigchild'
Pretty much the default php.ini.
We noticed this occurring once we put the machine inside a DMZ. If PHP tries to
connect to an address that the DMZ isn't allowing, the DMZ throws the packets
away and PHP sits there waiting for a response. This only happens when
session_start() is called in the page. If session_start() is commented out, the
normal PHP warnings appear telling me of mysql or ldap not being able to
connect.
------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9427&edit=2