List:General Discussion« Previous MessageNext Message »
From:Paul DuBois Date:July 15 1999 2:02pm
Subject:Re: mysql_ping() problem
View as plain text  
At 10:51 AM +0200 7/15/99, BAUMEISTER Alexandre wrote:
>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 ?

It wasn't clear to me from the original posting (or I've forgotten),
but:

- Are you changing the gateway after you've already established the MySQL
  connection?
- Under the circumstances you describe, does the UNIX ping command work?


>
>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.

--
Paul DuBois, paul@stripped
Northern League Chronicles: http://www.snake.net/nl/
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