1 message in com.mysql.lists.javaBug in 3.1.10 (and later?) with setti...
FromSent OnAttachments
Kevin Burton10 Aug 2006 21:28 
Subject:Bug in 3.1.10 (and later?) with setting infinite socket timeouts...
From:Kevin Burton (burt@gmail.com)
Date:08/10/2006 09:28:49 PM
List:com.mysql.lists.java

In MysqlIO.java you have:

if (socketTimeout != 0) { try { this.mysqlConnection.setSoTimeout(socketTimeout); } catch (Exception ex) { /* Ignore if the platform does not support it */ ; } }

If the socketTimeout value is explicity set (even if its zero) you should call setSoTimeout.

The problem is that if the VM default ( sun.net.client.defaultReadTimeout ) is not an infinite value and you want MySQL to use an infinite value there's no way to tell it to do so.

I'm just going to use 2^31 which is 24 days and plenty of near infinite timeout but this is still a problem if you want to do it right........