Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for corruption (0.05 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cache.kt

            // Choice here is between failing with a correct RuntimeException
            // or mostly silently with an IOException
            url = urlLine.toHttpUrlOrNull() ?: throw IOException("Cache corruption for $urlLine").also {
              Platform.get().log("cache corruption", WARN, it)
            }
            requestMethod = source.readUtf8LineStrict()
            val varyHeadersBuilder = Headers.Builder()
            val varyRequestHeaderLineCount = readInt(source)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 26.9K bytes
    - Viewed (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt

      }
    
      @Test
      fun responseCachingAndInputStreamSkipWithNoLengthHeaders() {
        testResponseCaching(TransferKind.END_OF_STREAM)
      }
    
      /**
       * Skipping bytes in the input stream caused ResponseCache corruption.
       * http://code.google.com/p/android/issues/detail?id=8175
       */
      private fun testResponseCaching(transferKind: TransferKind) {
        val mockResponse =
          MockResponse
            .Builder()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 113.6K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/CacheCorruptionTest.kt

      }
    
      private fun corruptMetadata(corruptor: (String) -> String) {
        val metadataFile =
          fileSystem.allPaths.find {
            it.name.endsWith(".0")
          }
    
        if (metadataFile != null) {
          val contents =
            fileSystem.read(metadataFile) {
              readUtf8()
            }
    
          fileSystem.write(metadataFile) {
            writeUtf8(corruptor(contents))
          }
        }
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 6K bytes
    - Viewed (0)
  4. CHANGELOG/CHANGELOG-1.30.md

    - Added to `MutableFeatureGate` the ability to override the default...
    Registered: Fri Sep 05 09:05:11 UTC 2025
    - Last Modified: Wed Jun 18 18:59:10 UTC 2025
    - 398.1K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http2/Http2Connection.kt

              }
            }
          }
        }
      }
    
      /**
       * Eagerly reads `byteCount` bytes from the source before launching a background task to
       * process the data.  This avoids corrupting the stream.
       */
      @Throws(IOException::class)
      internal fun pushDataLater(
        streamId: Int,
        source: BufferedSource,
        byteCount: Int,
        inFinished: Boolean,
      ) {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 31.8K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

      /**
       * CycleDetectingLock implementations must call this method in a {@code finally} clause after any
       * attempt to change the lock state, including both lock and unlock attempts. Failure to do so can
       * result in corrupting the acquireLocks set.
       */
      private static void lockStateChanged(CycleDetectingLock lock) {
        if (!lock.isAcquiredByCurrentThread()) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 18 15:05:43 UTC 2025
    - 35.9K bytes
    - Viewed (0)
Back to top