Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for exitNetworkInterceptorExchange (0.14 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt

              throw ProtocolException("Too many follow-up requests: $followUpCount")
            }
    
            request = followUp
            priorResponse = response
          } finally {
            call.exitNetworkInterceptorExchange(closeActiveExchange)
          }
        }
      }
    
      /**
       * Report and attempt to recover from a failure to communicate with a server. Returns true if
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 13:24:48 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/RealCall.kt

      }
    
      /**
       * @param closeExchange true if the current exchange should be closed because it will not be used.
       *     This is usually due to either an exception or a retry.
       */
      internal fun exitNetworkInterceptorExchange(closeExchange: Boolean) {
        this.withLock {
          check(expectMoreExchanges) { "released" }
        }
    
        if (closeExchange) {
          exchange?.detachWithViolence()
        }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 17.9K bytes
    - Viewed (0)
Back to top