Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for Gugger (0.27 sec)

  1. okhttp/src/test/java/okhttp3/internal/http2/MockHttp2Peer.kt

          protocol: ByteString,
          host: String,
          port: Int,
          maxAge: Long,
        ) {
          throw UnsupportedOperationException()
        }
      }
    
      companion object {
        private val logger = Logger.getLogger(MockHttp2Peer::class.java.name)
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

     *
     * Most applications should share a process-wide [TaskRunner] and use queues for per-client work.
     */
    class TaskRunner(
      val backend: Backend,
      internal val logger: Logger = TaskRunner.logger,
    ) {
      val lock: ReentrantLock = ReentrantLock()
      val condition: Condition = lock.newCondition()
    
      private var nextQueueName = 10000
      private var coordinatorWaiting = false
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 10.6K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt

      fun connectionPreface() {
        this.withLock {
          if (closed) throw IOException("closed")
          if (!client) return // Nothing to write; servers don't send connection headers!
          if (logger.isLoggable(FINE)) {
            logger.fine(format(">> CONNECTION ${CONNECTION_PREFACE.hex()}"))
          }
          sink.write(CONNECTION_PREFACE)
          sink.flush()
        }
      }
    
      /** Applies `peerSettings` and then sends a settings ACK. */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  4. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

        if (assertionsEnabled && taskRunner.lock.isHeldByCurrentThread) {
          throw AssertionError("Thread ${Thread.currentThread().name} MUST NOT hold lock on $this")
        }
      }
    
      val logger = Logger.getLogger("TaskFaker." + instance++)
    
      /** Though this executor service may hold many threads, they are not executed concurrently. */
      private val tasksExecutor = Executors.newCachedThreadPool(threadFactory("TaskFaker"))
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/SocksProxy.kt

              connectionCount.incrementAndGet()
              service(socket)
            }
          } catch (e: SocketException) {
            logger.info("$threadName done accepting connections: ${e.message}")
          } catch (e: IOException) {
            logger.log(Level.WARNING, "$threadName failed unexpectedly", e)
          } finally {
            for (socket in openSockets) {
              socket.closeQuietly()
            }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/concurrent/TaskRunnerTest.kt

    import org.junit.jupiter.api.extension.RegisterExtension
    
    class TaskRunnerTest {
      private val taskFaker = TaskFaker()
    
      @RegisterExtension @JvmField
      val testLogHandler = TestLogHandler(taskFaker.logger)
    
      private val taskRunner = taskFaker.taskRunner
      private val log = mutableListOf<String>()
      private val redQueue = taskRunner.newQueue()
      private val blueQueue = taskRunner.newQueue()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 23K bytes
    - Viewed (0)
Back to top