Bonjour sinisa,
But from the documentation :
======================================================================
Mysql_ping():
Checks whether or not the connection to the server is working. If it
has gone down, an automatic reconnection is attempted.
This function can be used by clients that remain idle for a long
while, to check whether or not the server has closed the connection
and reconnect if necessary.
======================================================================
So I though that Mysql_ping() should not hang. If the server can't
be touch, shouldn't the connection be considered as down ? Shouldn't
Mysql_ping() attempt a reconnection ?
Meanwhile, why the modification of the default gateway of my
workstation breaks the Mysql connection ?
sccc> Everything works just fine.
sccc> Mysql_ping returns 0 on success. On failure, it behaves like a real
sccc> TCP/IP ping, i.e. it hangs. You can break it with Ctrl-C.
sccc> And how are you ???
Fine, thanks :)
Regards,
Alex.