- Sort Score
- Result 10 results
- Languages All
Results 51 - 58 of 58 for acquire (0.19 sec)
-
okhttp/src/test/java/okhttp3/internal/idn/IdnaMappingTableTest.kt
assertThat(IDNA_MAPPING_TABLE.mappings).isEqualTo(compactTable.mappings) } private fun String.map(): String { val buffer = Buffer() for (codePoint in codePoints()) { require(table.map(codePoint, buffer)) } return buffer.readUtf8() } private fun String.mapExpectingErrors(): String { val buffer = Buffer() var errorCount = 0
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 8.9K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerReader.kt
/** * Consume the next header in the stream and return it. If there is no header to read because we * have reached a limit, this returns [END_OF_DATA]. */ internal fun readHeader(): DerHeader { require(peekedHeader == null) // We've hit a local limit. if (byteCount == limit) return END_OF_DATA // We've exhausted the source stream. if (limit == -1L && source.exhausted()) return END_OF_DATA
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 10.5K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/ConnectionSpec.kt
apply { require(tls) { "no cipher suites for cleartext connections" } require(cipherSuites.isNotEmpty()) { "At least one cipher suite is required" } this.cipherSuites = cipherSuites.copyOf() as Array<String> // Defensive copy. } fun allEnabledTlsVersions() = apply { require(tls) { "no TLS versions for cleartext connections" }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 13.4K bytes - Viewed (0) -
okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/DerWriter.kt
} fun writeObjectIdentifier(s: String) { val utf8 = Buffer().writeUtf8(s) val v1 = utf8.readDecimalLong() require(utf8.readByte() == '.'.code.toByte()) val v2 = utf8.readDecimalLong() writeVariableLengthLong(v1 * 40 + v2) while (!utf8.exhausted()) { require(utf8.readByte() == '.'.code.toByte()) val vN = utf8.readDecimalLong() writeVariableLengthLong(vN) } }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 5.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/ws/WebSocketWriter.kt
@Throws(IOException::class) private fun writeControlFrame( opcode: Int, payload: ByteString, ) { if (writerClosed) throw IOException("closed") val length = payload.size require(length <= PAYLOAD_BYTE_MAX) { "Payload size must be less than or equal to $PAYLOAD_BYTE_MAX" } val b0 = B0_FLAG_FIN or opcode sinkBuffer.writeByte(b0) var b1 = length
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 5.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/ConnectionCoalescingTest.kt
object : Callback { @Throws(IOException::class) override fun onResponse( call: Call, response: Response, ) { try { // Wait until request2 acquires the connection before we destroy it violently. latch3.await() } catch (e: InterruptedException) { throw AssertionError(e) }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 18.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/connection/FastFallbackExchangeFinderTest.kt
/** * This test causes two connections to become available simultaneously, one from a TCP connect and * one from the pool. We must take the pooled connection because by taking it from the pool, we've * fully acquired it. * * This test yields threads to force the decision of plan1 to be deliberate and not lucky. In * particular, we set up this sequence of events: * * 1. take plan 0 * 3. plan 0 connects
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 24 04:40:49 GMT 2024 - 20.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/Http2ConnectionTest.kt
stream.readTimeout().timeout(500, TimeUnit.MILLISECONDS) val source = stream.getSource().buffer() source.require(3) val startNanos = System.nanoTime() assertFailsWith<InterruptedIOException> { source.require(4) } val elapsedNanos = System.nanoTime() - startNanos awaitWatchdogIdle() // 200ms delta
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Apr 20 17:03:43 GMT 2024 - 75.4K bytes - Viewed (0)