public synchronized void setTimeout(int timeout) {
        try {
            this.timeout = timeout;
            if (socket != null) {
                socket.setSoTimeout(timeout);
            }
        }
        catch (IOException ex) {
            logger.warn("Could not set timeout to value " + timeout, ex);
        }
    }
public synchronized void setTimeout ( int timeout ) { try { this . timeout = timeout ; if ( socket != null ) { socket . setSoTimeout ( timeout ) ; } } catch ( IOException ex ) { logger . warn ( "Could not set timeout to value " + timeout , ex ) ; } }
Sets the timeout (msec) for this <tt>TCPMasterConnection</tt>. This is both the
connection timeout and the transaction timeout

@param timeout - the timeout in milliseconds as an <tt>int</tt>.