3 messages in com.mysql.lists.javaRe: Timeout and Connector/J
FromSent OnAttachments
Chambon06 Oct 2003 07:31 
Mark Matthews06 Oct 2003 14:12 
Chambon07 Oct 2003 04:46 
Subject:Re: Timeout and Connector/J
From:Chambon (bern@cc.in2p3.fr)
Date:10/07/2003 04:46:06 AM
List:com.mysql.lists.java

Hello,

Thank you very much for these informations about timeout.

About connectTimeout set with properties, I have made a mistake while saying that it doesn't works. I am sorry.

I fact, I made an error while 'simulating' a connect timeout I use kill -STOP to the mysqld process, but the java connect() function was
succesful. My test program was hang, because I didn't set a socketTimeout, so the doHandshake method (from MysqlIO) was hang.

I don't know how to simulated a connect timeout. If no mysqld is running, I immediately catch a ConnectException: Connection
refused, not a SocketTimeoutException.

Regards.