#17964 [Com]: socket fclose CLOSE_WAIT

From: Date: Wed, 14 Jan 2004 09:45:07 +0000
Subject: #17964 [Com]: socket fclose CLOSE_WAIT
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-53291@lists.php.net to get a copy of this message
ID: 17964 Comment by: ruben at textinfo dot nl Reported By: filippo at zirak dot it Status: No Feedback Bug Type: Sockets related Operating System: linux 2.4.4 PHP Version: 4.2.1 New Comment: I'm experiencing the same problem with PHP 4.3.4 on Windows 2000 Advanced Server running IIS 5 and on a Solaris 9 machine running PHP 4.2.2. I'm using: $this->socket = fsockopen($serverip, $serverport); to open the connection and: fclose($this->socket); to close it. If I check the server it connects to with netstat after the fclose call the connection stays in CLOSE_WAIT state. Is there any solution for this already? Previous Comments: ------------------------------------------------------------------------ [2003-09-13 17:27:27] n-a at mail dot com I have the same bug in php 4.3.1 This bug is presented only with SOME servers. Approx. 5-10% of internet servers. ------------------------------------------------------------------------ [2002-07-01 17:33:59] jason@php.net No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. I can not reproduce this, and their was no feedback ------------------------------------------------------------------------ [2002-06-25 05:42:25] derick@php.net Can you please try the latest non-stable snapshot from snaps.php.net, it is likely that this is fixed already. Derick ------------------------------------------------------------------------ [2002-06-25 05:37:58] filippo at zirak dot it $fp=fopen("127.0.0.1", $myport, 3); ... (actions) fclose($fp); if the server does not close itself the connetion, but is the php client to close it with fclose, this leads invariably to leave the server connection in a CLOSE_WAIT state (for looooong time, not secs!). Filippo ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17964&edit=1

« previous php.bugs (#53291) next »