@Test public void testSetSocketTimeout() throws Exception { conn.bind(socket); conn.setSocketTimeout(Timeout.ofMilliseconds(123)); Mockito.verify(socket, Mockito.times(1)).setSoTimeout(123); }
@Override public void setSocketTimeout(final Timeout timeout) { final SocketHolder socketHolder = this.socketHolderRef.get(); if (socketHolder != null) { try { socketHolder.getSocket().setSoTimeout(Timeout.defaultsToDisabled(timeout).toMillisecondsIntBound()); } catch (final SocketException ignore) { } } }
BHttpConnectionBase implements BHttpConnection { @Override public void setSocketTimeout(final Timeout timeout) { final SocketHolder socketHolder = this.socketHolderRef.get(); if (socketHolder != null) { try { socketHolder.getSocket().setSoTimeout(Timeout.defaultsToDisabled(timeout).toMillisecondsIntBound()); } catch (final SocketException ignore) { } } } }
BHttpConnectionBase implements BHttpConnection { @Override public void setSocketTimeout(final Timeout timeout) { final SocketHolder socketHolder = this.socketHolderRef.get(); if (socketHolder != null) { try { socketHolder.getSocket().setSoTimeout(Timeout.defaultsToDisabled(timeout).toMillisecondsIntBound()); } catch (final SocketException ignore) { } } } BHttpConnectionBase(
            final Http1Config http1Config,
            final CharsetDecoder charDecoder,
            final CharsetEncoder charEncoder); }
BHttpConnectionBase implements BHttpConnection { @Override public void setSocketTimeout(final Timeout timeout) { final SocketHolder socketHolder = this.socketHolderRef.get(); if (socketHolder != null) { try { socketHolder.getSocket().setSoTimeout(Timeout.defaultsToDisabled(timeout).toMillisecondsIntBound()); } catch (final SocketException ignore) { } } } BHttpConnectionBase(
            final Http1Config http1Config,
            final CharsetDecoder charDecoder,
            final CharsetEncoder charEncoder); @Override boolean isOpen(); @Override ProtocolVersion getProtocolVersion(); @Override SocketAddress getRemoteAddress(); @Override SocketAddress getLocalAddress(); @Override void setSocketTimeout(final Timeout timeout); @Override Timeout getSocketTimeout(); @Override void close(final CloseMode closeMode); @Override void close(); @Override boolean isDataAvailable(final Timeout timeout); @Override boolean isStale(); @Override void flush(); @Override SSLSession getSSLSession(); @Override EndpointDetails getEndpointDetails(); @Override String toString(); }
BHttpConnectionBase implements BHttpConnection { @Override public void setSocketTimeout(final Timeout timeout) { final SocketHolder socketHolder = this.socketHolderRef.get(); if (socketHolder != null) { try { socketHolder.getSocket().setSoTimeout(Timeout.defaultsToDisabled(timeout).toMillisecondsIntBound()); } catch (final SocketException ignore) { } } } BHttpConnectionBase(
            final Http1Config http1Config,
            final CharsetDecoder charDecoder,
            final CharsetEncoder charEncoder); @Override boolean isOpen(); @Override ProtocolVersion getProtocolVersion(); @Override SocketAddress getRemoteAddress(); @Override SocketAddress getLocalAddress(); @Override void setSocketTimeout(final Timeout timeout); @Override Timeout getSocketTimeout(); @Override void close(final CloseMode closeMode); @Override void close(); @Override boolean isDataAvailable(final Timeout timeout); @Override boolean isStale(); @Override void flush(); @Override SSLSession getSSLSession(); @Override EndpointDetails getEndpointDetails(); @Override String toString();  }