cvs: php4 /ext/ircg ircg.c

From: Date: Sun, 18 Feb 2001 09:32:29 +0000
Subject: cvs: php4 /ext/ircg ircg.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-4082@lists.php.net to get a copy of this message
sas Sun Feb 18 01:32:29 2001 EDT Modified files: /php4/ext/ircg ircg.c Log: Close an apparent race which caused HTTP connections to stay open, even though the IRC server refused to let us login. Index: php4/ext/ircg/ircg.c diff -u php4/ext/ircg/ircg.c:1.28 php4/ext/ircg/ircg.c:1.29 --- php4/ext/ircg/ircg.c:1.28 Sun Feb 18 00:30:12 2001 +++ php4/ext/ircg/ircg.c Sun Feb 18 01:32:28 2001 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: ircg.c,v 1.28 2001/02/18 08:30:12 sas Exp $ */ +/* $Id: ircg.c,v 1.29 2001/02/18 09:32:28 sas Exp $ */ #include "php.h" #include "php_ini.h" @@ -127,6 +127,7 @@ { php_irconn_t **conn = dummy; + (*conn)->fd = -2; irc_disconnect(&(*conn)->conn, "Browser connection closed"); } @@ -152,6 +153,7 @@ php_irconn_t *conn = dummy; if (conn->fd > -1) { + close(conn->fd); zend_hash_index_del(&h_fd2irconn, conn->fd); irc_write_buf_del(&conn->wb); }

« previous php.cvs (#4082) next »