|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2001-07-13 08:12 UTC] thies@php.net
[2001-07-13 08:12 UTC] thies@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 14:00:01 2025 UTC |
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