Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for isShutdown (0.64 sec)

  1. src/net/http/server.go

    // for them to close, if desired. See [Server.RegisterOnShutdown] for a way to
    // register shutdown notification functions.
    //
    // Once Shutdown has been called on a server, it may not be reused;
    // future calls to methods such as Serve will return ErrServerClosed.
    func (srv *Server) Shutdown(ctx context.Context) error {
    	srv.inShutdown.Store(true)
    
    	srv.mu.Lock()
    	lnerr := srv.closeListenersLocked()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  2. src/net/http/serve_test.go

    		if n != 1<<20 || err != nil {
    			t.Errorf("client read response body: %d, %v", n, err)
    		}
    		// This shutdown really should be automatic, but it isn't right now.
    		// Shutdown (rather than Close) ensures the handler is done before we return.
    		res.Body.Close()
    		cst.ts.Config.Shutdown(context.Background())
    	}
    }
    
    // Test that the HTTP/2 server handles Server.WriteTimeout (Issue 18437)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 202K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

          functionCalled.await();
          assertThat(output.toString()).contains(function.toString());
        } finally {
          functionBlocking.countDown();
          executor.shutdown();
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // lazyTransform
      public void testLazyTransform() throws Exception {
        FunctionSpy<Object, String> spy = new FunctionSpy<>(constant("bar"));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 144.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

          functionCalled.await();
          assertThat(output.toString()).contains(function.toString());
        } finally {
          functionBlocking.countDown();
          executor.shutdown();
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // lazyTransform
      public void testLazyTransform() throws Exception {
        FunctionSpy<Object, String> spy = new FunctionSpy<>(constant("bar"));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 29 16:29:37 UTC 2024
    - 144.1K bytes
    - Viewed (0)
  5. pkg/controller/garbagecollector/garbagecollector_test.go

    	t.Add(item)
    }
    func (t *trackingWorkqueue[T]) AddRateLimited(item T) {
    	t.Add(item)
    }
    func (t *trackingWorkqueue[T]) Get() (T, bool) {
    	item, shutdown := t.limiter.Get()
    	t.dequeue(item)
    	return item, shutdown
    }
    func (t *trackingWorkqueue[T]) Done(item T) {
    	t.limiter.Done(item)
    }
    func (t *trackingWorkqueue[T]) Forget(item T) {
    	t.limiter.Forget(item)
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 111.6K bytes
    - Viewed (0)
  6. pkg/kubelet/kubelet.go

    	go kl.pluginManager.Run(kl.sourcesReady, wait.NeverStop)
    
    	err = kl.shutdownManager.Start()
    	if err != nil {
    		// The shutdown manager is not critical for kubelet, so log failure, but don't block Kubelet startup if there was a failure starting it.
    		klog.ErrorS(err, "Failed to start node shutdown manager")
    	}
    }
    
    // Run starts the kubelet reacting to config updates
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 14 16:09:17 UTC 2024
    - 126.1K bytes
    - Viewed (0)
  7. fastapi/routing.py

                    """
                ),
            ] = None,
            on_shutdown: Annotated[
                Optional[Sequence[Callable[[], Any]]],
                Doc(
                    """
                    A list of shutdown event handler functions.
    
                    You should instead use the `lifespan` handlers.
    
                    Read more in the
                    [FastAPI docs for `lifespan`](https://fastapi.tiangolo.com/advanced/events/).
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Apr 02 02:48:51 UTC 2024
    - 170.1K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        assertFailsWith<IOException> {
          getResponse(request)
        }
      }
    
      @Test
      fun connectRetriesUntilConnectedOrFailed() {
        val request = newRequest("/foo")
        server.shutdown()
        assertFailsWith<IOException> {
          getResponse(request)
        }
      }
    
      @Test
      fun requestBodySurvivesRetriesWithFixedLength() {
        testRequestBodySurvivesRetries(TransferKind.FIXED_LENGTH)
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/CacheTest.kt

        val cached = cacheGet(cache, request)
        if (shouldWriteToCache) {
          assertThat(cached).isNotNull()
          cached!!.body.close()
        } else {
          assertThat(cached).isNull()
        }
        server.shutdown() // tearDown() isn't sufficient; this test starts multiple servers
      }
    
      private fun assertSubsequentResponseCached(
        initialResponseCode: Int,
        finalResponseCode: Int,
      ) {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 108.6K bytes
    - Viewed (0)
  10. fastapi/applications.py

                    """
                ),
            ] = None,
            on_shutdown: Annotated[
                Optional[Sequence[Callable[[], Any]]],
                Doc(
                    """
                    A list of shutdown event handler functions.
    
                    You should instead use the `lifespan` handlers.
    
                    Read more in the
                    [FastAPI docs for `lifespan`](https://fastapi.tiangolo.com/advanced/events/).
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat May 18 00:48:03 UTC 2024
    - 172.2K bytes
    - Viewed (0)
Back to top