Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 182 for docker (0.03 sec)

  1. samples/unixdomainsockets/src/main/java/okhttp3/unixdomainsockets/UnixDomainSocketFactory.java

      }
    
      @Override public Socket createSocket(String host, int port) throws IOException {
        Socket result = createSocket();
    
        try {
          result.connect(new InetSocketAddress(host, port));
        } catch (IOException e) {
          result.close();
          throw e;
        }
        return result;
      }
    
      @Override public Socket createSocket(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Dec 03 21:33:52 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/MockHttp2Peer.kt

      private fun readAndWriteFrames() {
        check(socket == null)
        val socket = serverSocket!!.accept()!!
        this.socket = socket
    
        // Bail out now if this instance was closed while waiting for the socket to accept.
        synchronized(this) {
          if (executor.isShutdown) {
            socket.close()
            return
          }
        }
        val outputStream = socket.getOutputStream()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 8.7K bytes
    - Viewed (0)
  3. okhttp-testing-support/src/main/kotlin/okhttp3/internal/duplex/MockSocketHandler.kt

      }
    
      override fun handle(socket: Socket) {
        val task = serviceSocketTask(socket.asBufferedSocket())
        results.add(task)
        task.run()
      }
    
      /** Returns a task that processes both request and response from [socket]. */
      private fun serviceSocketTask(socket: BufferedSocket): FutureTask<Void> {
        return FutureTask<Void> {
          socket.source.use {
            socket.sink.use {
              while (true) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/ConnectionPoolTest.kt

        assertThat(c1.socket().isClosed).isFalse()
        assertThat(c2.socket().isClosed).isFalse()
    
        // Add a third connection
        val c3 = factory.newConnection(pool, routeC1, 75L)
    
        // The third connection bounces the first.
        assertThat(pool.closeConnections(100L)).isEqualTo(0L)
        assertThat(pool.connectionCount()).isEqualTo(2)
        assertThat(c1.socket().isClosed).isTrue()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 12.9K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/eventbus/SubscriberTest.java

    import junit.framework.TestCase;
    import org.jspecify.annotations.NullUnmarked;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Tests for {@link Subscriber}.
     *
     * @author Cliff Biffle
     * @author Colin Decker
     */
    @NullUnmarked
    public class SubscriberTest extends TestCase {
    
      private static final Object FIXTURE_ARGUMENT = new Object();
    
      private EventBus bus;
      private boolean methodCalled;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Feb 13 17:34:21 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  6. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/RecordedRequest.kt

        sequenceNumber: Int,
        socket: Socket,
        failure: IOException? = null,
      ) {
        this.requestLine = requestLine
        this.headers = headers
        this.chunkSizes = chunkSizes
        this.bodySize = bodySize
        this.body = body
        this.sequenceNumber = sequenceNumber
        this.failure = failure
    
        if (socket is SSLSocket) {
          try {
            this.handshake = socket.session.handshake()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/io/CharStreams.java

    import java.util.List;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Provides utility methods for working with character streams.
     *
     * @author Chris Nokleberg
     * @author Bin Zhu
     * @author Colin Decker
     * @since 1.0
     */
    @J2ktIncompatible
    @GwtIncompatible
    public final class CharStreams {
    
      // 2K chars (4K bytes)
      private static final int DEFAULT_BUF_SIZE = 0x800;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 30 17:25:01 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  8. mockwebserver/src/main/kotlin/mockwebserver3/SocketEffect.kt

       * after the response and will close the connection when the client's socket is exhausted.
       *
       * On HTTP/1 this closes the socket.
       */
      public object ShutdownConnection : SocketEffect
    
      /**
       * On HTTP/2 this will send the error code on the stream.
       *
       * On HTTP/1 this closes the socket.
       */
      public class CloseStream(
        public val http2ErrorCode: Int = 0,
      ) : SocketEffect
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/ExchangeCodec.kt

    import okio.Sink
    import okio.Socket
    import okio.Source
    
    /** Encodes HTTP requests and decodes HTTP responses. */
    interface ExchangeCodec {
      /** The connection or CONNECT tunnel that owns this codec. */
      val carrier: Carrier
    
      /** Returns true if the response body and (possibly empty) trailers have been received. */
      val isResponseComplete: Boolean
    
      /** The socket that carries this exchange. */
      val socket: Socket
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue Jul 29 21:11:09 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/io/CharSink.java

     * character encoding} using {@link ByteSink#asCharSink(Charset)}. Characters written to the
     * resulting {@code CharSink} will written to the {@code ByteSink} as encoded bytes.
     *
     * @since 14.0
     * @author Colin Decker
     */
    @J2ktIncompatible
    @GwtIncompatible
    public abstract class CharSink {
    
      /** Constructor for use by subclasses. */
      protected CharSink() {}
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Apr 14 16:07:06 UTC 2025
    - 6.7K bytes
    - Viewed (0)
Back to top