Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for logCloseableLeak (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/Android10Platform.kt

          super.getStackTraceForCloseable(closer)
        }
    
      override fun logCloseableLeak(
        message: String,
        stackTrace: Any?,
      ) {
        if (Build.VERSION.SDK_INT >= 30) {
          (stackTrace as CloseGuard).warnIfOpen()
        } else {
          // Unable to report via CloseGuard. As a last-ditch effort, send it to the logger.
          super.logCloseableLeak(message, stackTrace)
        }
      }
    
      @SuppressLint("NewApi")
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sun Jul 20 11:25:50 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealConnectionPool.kt

          val callReference = reference as CallReference
          val message =
            "A connection to ${connection.route().address.url} was leaked. " +
              "Did you forget to close a response body?"
          Platform.get().logCloseableLeak(message, callReference.callStackTrace)
    
          references.removeAt(i)
    
          // If this was the last allocation, the connection is eligible for immediate eviction.
          if (references.isEmpty()) {
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Oct 08 03:50:05 GMT 2025
    - 11.1K bytes
    - Click Count (0)
Back to Top