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/