Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 251 - 260 of 420 for cancelFn (0.08 seconds)

  1. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2ConnectionTest.kt

        // Play it back.
        connect(peer, PushObserver.CANCEL, Http2Connection.Listener.REFUSE_INCOMING_STREAMS)
    
        // Verify the peer received what was expected.
        val rstStream = peer.takeFrame()
        assertThat(rstStream.type).isEqualTo(Http2.TYPE_RST_STREAM)
        assertThat(rstStream.streamId).isEqualTo(2)
        assertThat(rstStream.errorCode).isEqualTo(ErrorCode.CANCEL)
      }
    
      /**
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Jul 31 04:18:40 GMT 2025
    - 75.5K bytes
    - Click Count (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt

    import okhttp3.internal.stripBody
    import okhttp3.internal.withSuppressed
    
    /**
     * This interceptor recovers from failures and follows redirects as necessary. It may throw an
     * [IOException] if the call was canceled.
     */
    class RetryAndFollowUpInterceptor : Interceptor {
      @Throws(IOException::class)
      override fun intercept(chain: Interceptor.Chain): Response {
        val realChain = chain as RealInterceptorChain
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 12.5K bytes
    - Click Count (0)
  3. cmd/http-stats.go

    	hstats.totalS3Requests.Inc(api)
    	code := w.StatusCode
    
    	switch {
    	case code == 0:
    	case code == 499:
    		// 499 is a good error, shall be counted as canceled.
    		hstats.totalS3Canceled.Inc(api)
    	case code >= http.StatusBadRequest:
    		if code >= http.StatusInternalServerError {
    			hstats.totalS35xxErrors.Inc(api)
    		} else {
    			hstats.totalS34xxErrors.Inc(api)
    		}
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Tue Sep 24 17:13:00 GMT 2024
    - 11.4K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        future = service.schedule(() -> {}, 5, MINUTES);
        future.cancel(true);
        assertTrue(future.isCancelled());
        delegateFuture = (ScheduledFuture<?>) delegateQueue.element();
        assertTrue(delegateFuture.isCancelled());
    
        delegateQueue.clear();
    
        future = service.scheduleAtFixedRate(() -> {}, 5, 5, MINUTES);
        future.cancel(true);
        assertTrue(future.isCancelled());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 26.1K bytes
    - Click Count (0)
  5. src/main/java/jcifs/SmbWatchHandle.java

         * opened if it is not and should be closed with {@link #close()} when no longer
         * needed.
         *
         * Closing the context should cancel a pending notify request, but that does not seem to work reliable in all
         * implementations.
         *
         * Changes in between these calls (as long as the file is open) are buffered by the server, so iteratively calling
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  6. tests/test_stream_cancellation.py

        i = 0
        while True:
            yield i
            i += 1
    
    
    async def _run_asgi_and_cancel(app: FastAPI, path: str, timeout: float) -> bool:
        """Call the ASGI app for *path* and cancel after *timeout* seconds.
    
        Returns `True` if the cancellation was delivered (i.e. it did not hang).
        """
        chunks: list[bytes] = []
    
        async def receive():  # type: ignore[no-untyped-def]
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Feb 27 18:56:47 GMT 2026
    - 2.7K bytes
    - Click Count (0)
  7. .ci/jobs.t/elastic+elasticsearch+pull-request+packaging-tests-windows.yml

              trigger-phrase: '.*run\W+elasticsearch-ci/packaging-tests-windows.*'
              github-hooks: true
              status-context: elasticsearch-ci/packaging-tests-windows
              cancel-builds-on-update: true
              white-list-target-branches:
                - master
              excluded-regions:
                - ^docs/.*
              white-list-labels:
                - ':Delivery/Packaging'
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Aug 24 18:50:27 GMT 2021
    - 2.1K bytes
    - Click Count (0)
  8. okhttp-testing-support/src/main/kotlin/okhttp3/FailingCall.kt

      override fun request(): Request = error("unexpected")
    
      override fun execute(): Response = error("unexpected")
    
      override fun enqueue(responseCallback: Callback): Unit = error("unexpected")
    
      override fun cancel(): Unit = error("unexpected")
    
      override fun isExecuted(): Boolean = error("unexpected")
    
      override fun isCanceled(): Boolean = error("unexpected")
    
      override fun timeout(): Timeout = error("unexpected")
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Nov 05 18:28:35 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  9. .ci/jobs.t/elastic+elasticsearch+pull-request+packaging-tests-unix.yml

              allow-whitelist-orgs-as-admins: true
              trigger-phrase: '.*run\W+elasticsearch-ci/packaging-tests-unix.*'
              github-hooks: true
              status-context: elasticsearch-ci/packaging-tests-unix
              cancel-builds-on-update: true
              black-list-target-branches:
                - 6.8
              excluded-regions:
                - ^docs/.*
              white-list-labels:
                - ':Delivery/Packaging'
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Sep 14 17:35:45 GMT 2021
    - 2.2K bytes
    - Click Count (0)
  10. .ci/jobs.t/elastic+elasticsearch+pull-request+packaging-tests-windows-sample.yml

              trigger-phrase: '.*run\W+elasticsearch-ci/packaging-tests-windows-sample.*'
              github-hooks: true
              status-context: elasticsearch-ci/packaging-tests-windows-sample
              cancel-builds-on-update: true
              white-list-target-branches:
                - master
              excluded-regions:
                - ^docs/.*
              black-list-labels:
                - '>test-mute'
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Aug 24 18:50:27 GMT 2021
    - 2.1K bytes
    - Click Count (0)
Back to Top