cvs: php4 /ext/ircg ircg.c

From: Date: Fri, 03 Aug 2001 11:14:38 +0000
Subject: cvs: php4 /ext/ircg ircg.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-6511@lists.php.net to get a copy of this message
sas Fri Aug 3 07:14:38 2001 EDT Modified files: /php4/ext/ircg ircg.c Log: Destruct resources appropiately, when associating the connection with a new fd. Index: php4/ext/ircg/ircg.c diff -u php4/ext/ircg/ircg.c:1.96 php4/ext/ircg/ircg.c:1.97 --- php4/ext/ircg/ircg.c:1.96 Wed Aug 1 14:38:44 2001 +++ php4/ext/ircg/ircg.c Fri Aug 3 07:14:38 2001 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: ircg.c,v 1.96 2001/08/01 18:38:44 sas Exp $ */ +/* $Id: ircg.c,v 1.97 2001/08/03 11:14:38 sas Exp $ */ #include <time.h> @@ -1001,6 +1001,12 @@ if (!conn) RETURN_FALSE; + if (conn->fd >= 0) { + /* Migrate IRC session to another HTTP connection */ + zend_hash_index_del(&h_fd2irconn, conn->fd); + irc_write_buf_del(&conn->wb); + shutdown(conn->fd, 2); + } irc_set_currents++; thttpd_register_on_close(http_closed_connection); thttpd_set_dont_close();

« previous php.cvs (#6511) next »