From:             [EMAIL PROTECTED]
Operating system: Debian 2.2
PHP version:      4.0.6
PHP Bug Type:     PostgreSQL related
Bug description:  pg_close cause a lot of sockets in TIME_WAIT state

php-4.0.6
postgres 7.1.2

I noticed a lot of sockets leaved in TIME_WAIT state in our application. so
I worte a simple script

<pre>
for ($i = 0 $i < 100 ; $i++){
    $db = pg_open ("some string");
    pg_close($db);
}
<pre>

After that I noticed around 200 sockets in TIME _WAIT state. If I omit the
pg_close statement averything works fine (and is considerably faster).
The same thing happens if I do a query before reopen a connection.
This bug is not reproducible with postgres 7.0.x

Thanks and goodbye
-- 
Edit bug report at: http://bugs.php.net/?id=12084&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to