code: public int getTimeout() throws SocketException {
      if (currentProtocol != null) {
        return currentProtocol.getTimeout();
      }
      return ((urlParser.getOptions().socketTimeout == null) ? 0
          : urlParser.getOptions().socketTimeout);
    }
docs: Get timeout (master connection possibly down).
  
  @return socket timeout in ms
  @throws SocketException if socket exception