For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > December 2007 > Parent process lost MySQLi connection after child process gone.









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Parent process lost MySQLi connection after child process gone.
Dmitry Shukaylo

2007-12-20, 7:59 am

Hello,

A question:
Can we make a separate file handlers for mysql connection sockets for
every new connection using mysqli library in future releases?
IMHO this should be very usefull for peoples. I saw tens messages at
various forums and some in bug database on this subject ...

Original report:
http://bugs.php.net/bug.php?id=37998

Resolution:
"[19 Nov 11:25am UTC] hholzgra@php.net
After a fork the two processes share the file handle for the mysql
connection socket,
when one of them terminates it closes its open file handles and so the
shared connection
socket gets closed for both -> so expected behavior ..."

My thanks to hholzgra@php.net.


--
Dmitry Shukaylo // DBS2-RIPE, CAT-UANIC
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com