List:General Discussion« Previous MessageNext Message »
From:BAUMEISTER Alexandre Date:July 15 1999 8:51am
Subject:Re: mysql_ping() problem
View as plain text  
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.


Thread
mysql_ping() problemBAUMEISTER Alexandre13 Jul
  • mysql_ping() problemsinisa14 Jul
    • Re: mysql_ping() problemBAUMEISTER Alexandre15 Jul
      • Re: mysql_ping() problemPaul DuBois15 Jul
        • Re: mysql_ping() problemelble15 Jul
          • Re[2]: mysql_ping() problemBAUMEISTER Alexandre16 Jul
            • Re[2]: mysql_ping() problemMichael Widenius29 Jul
        • Re[2]: mysql_ping() problemBAUMEISTER Alexandre16 Jul
          • Re[2]: mysql_ping() problemPaul DuBois16 Jul
            • Re[3]: mysql_ping() problemBAUMEISTER Alexandre19 Jul