Re: PEAR DB seems to block 2nd connection from same browser (or CLI execution)
| From: | Jocke Selin | Date: | Mon, 12 Sep 2005 13:04:15 +0000 |
| Subject: | Re: PEAR DB seems to block 2nd connection from same browser (or CLI execution) | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-20919@lists.php.net to get a copy of this message | ||
Right,
I've figured out where the problem is. It's *not* PEAR DB, it's the
sessions. We do an automatic session start within our framework and
thus it seemed like it was Pear DB that was the culprit as the
framework creates a connection to the database.
You can read about the problem in this post.
http://uk.php.net/manual/en/function.session-start.php#52988
And the "solution" seems to be to close the session:
http://uk.php.net/manual/en/function.session-write-close.php
I can understand that this happens; to eliminate concurrent
read/writes of the session variables, but I don't _like_ that it
happens.
Ah well, hope this might help someone in the future - I know that I
had a very hard time locating any information about this.
Cheers,
/Jocke