Bug #16356 Updated: file() on URL may leave open socket
| From: | belg4mit at mit dot edu | Date: | Tue, 02 Jul 2002 23:28:14 +0000 |
| Subject: | Bug #16356 Updated: file() on URL may leave open socket | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-12893@lists.php.net to get a copy of this message | ||
ID: 16356
Updated by: belg4mit@mit.edu
Reported By: belg4mit@mit.edu
Status: Bogus
Bug Type: Filesystem function related
Operating System: Linux 2.4.18
PHP Version: 4.1.2
New Comment:
It is appropriate for PHP to not clean up after itself and
waste kernel resources? PHP should close the socket itself
once the socket is put in a CLOSE_WAIT state, such as when
a timeout occurs.
Previous Comments:
------------------------------------------------------------------------
[2002-07-02 17:14:35] sterling@php.net
CLOSE_WAIT is appropriate.
------------------------------------------------------------------------
[2002-06-25 05:45:26] filippo@zirak.it
it the same bug:
http://bugs.php.net/bug.php?id=17964
when a connection is not closed from server side (e.g. timeout, but it
can be a ftp (without "bye") or other protocols closed with fclose and
not by server itself)
it leads to a CLOSE_WAIT state (for indefinite time on server
side!!!).
Filippo
------------------------------------------------------------------------
[2002-03-29 20:44:23] belg4mit@mit.edu
Occasionally a file("http://foobar.com") will
timeout.
Subsequenetly an open socket to foobar.com in CLOSE_WAIT may persist.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16356&edit=1