Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for exitNetworkInterceptorExchange (0.22 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
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 12.1K bytes
    - Viewed (4)
  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()
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 17.9K bytes
    - Viewed (2)
Back to top