@Deprecated
    public void setSoTimeout(int timeout)
        throws SocketException, IllegalStateException {
        this.params.setSoTimeout(timeout);
        if (this.socket != null) {
            this.socket.setSoTimeout(timeout);
        }
    }
@ Deprecated public void setSoTimeout ( int timeout ) throws SocketException , IllegalStateException { this . params . setSoTimeout ( timeout ) ; if ( this . socket != null ) { this . socket . setSoTimeout ( timeout ) ; } }
Set the {@link Socket}'s timeout, via {@link Socket#setSoTimeout}.  If the
connection is already open, the SO_TIMEOUT is changed.  If no connection
is open, then subsequent connections will use the timeout value.
<p>
Note: This is not a connection timeout but a timeout on network traffic!

@param timeout the timeout value
@throws SocketException - if there is an error in the underlying
protocol, such as a TCP error.

@deprecated Use {@link HttpConnectionParams#setSoTimeout(int)},
{@link HttpConnection#getParams()}.