Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 318 for isShutdown (0.99 sec)

  1. internal/event/target/nats_contrib_test.go

    	natsserver "github.com/nats-io/nats-server/v2/test"
    )
    
    func TestNatsConnPlain(t *testing.T) {
    	opts := natsserver.DefaultTestOptions
    	opts.Port = 14222
    	s := natsserver.RunServer(&opts)
    	defer s.Shutdown()
    
    	clientConfig := &NATSArgs{
    		Enable: true,
    		Address: xnet.Host{
    			Name:      "localhost",
    			Port:      (xnet.Port(opts.Port)),
    			IsPortSet: true,
    		},
    		Subject: "test",
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. src/net/fd_posix.go

    	runtime.SetFinalizer(fd, nil)
    	return fd.pfd.Close()
    }
    
    func (fd *netFD) shutdown(how int) error {
    	err := fd.pfd.Shutdown(how)
    	runtime.KeepAlive(fd)
    	return wrapSyscallError("shutdown", err)
    }
    
    func (fd *netFD) closeRead() error {
    	return fd.shutdown(syscall.SHUT_RD)
    }
    
    func (fd *netFD) closeWrite() error {
    	return fd.shutdown(syscall.SHUT_WR)
    }
    
    func (fd *netFD) Read(p []byte) (n int, err error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 29 16:24:51 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  3. pkg/test/fakes/gce_metadata_server/main.go

    	log.Println("GCE metadata server started")
    	<-done
    	if err := s1.Shutdown(context.Background()); err != nil {
    		log.Fatalf("GCE Metadata Shutdown Failed: %+v", err)
    	}
    	if err := s2.Shutdown(context.Background()); err != nil {
    		log.Fatalf("GCE Metadata Shutdown Failed: %+v", err)
    	}
    }
    
    func runServer(addr string, attrs map[string]string) *http.Server {
    	r := mux.NewRouter()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Dec 04 22:47:52 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/AbstractExecutionThreadService.java

                      // which case we should skip right down to shutdown.
                      if (isRunning()) {
                        try {
                          AbstractExecutionThreadService.this.run();
                        } catch (Throwable t) {
                          restoreInterruptIfIsInterruptedException(t);
                          try {
                            shutDown();
                          } catch (Exception ignored) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Dec 13 19:45:20 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/plugin/pkg/audit/buffered/buffered_test.go

    	backend.Run(stopCh)
    	backend.ProcessEvents(newEvents(config.MaxBatchSize)...)
    	<-delegatedCallStartCh
    
    	// Start shutdown procedure.
    	shutdownEndCh := make(chan struct{})
    	go func() {
    		close(stopCh)
    		backend.Shutdown()
    		close(shutdownEndCh)
    	}()
    
    	// Wait for some time and then check whether Shutdown has exited. Can give false positive,
    	// but never false negative.
    	time.Sleep(100 * time.Millisecond)
    	select {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 14 17:20:35 UTC 2018
    - 5.9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/AbstractIdleServiceTest.java

      public void testStop_failed() {
        final Exception exception = new Exception("deliberate");
        TestService service =
            new TestService() {
              @Override
              protected void shutDown() throws Exception {
                super.shutDown();
                throw exception;
              }
            };
        service.startAsync().awaitRunning();
        assertEquals(1, service.startUpCalled);
        assertEquals(0, service.shutDownCalled);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 7.5K bytes
    - Viewed (0)
  7. pkg/kubelet/nodeshutdown/systemd/inhibit_linux.go

    func (bus *DBusCon) InhibitShutdown() (InhibitLock, error) {
    	obj := bus.SystemBus.Object(logindService, logindObject)
    	what := "shutdown"
    	who := "kubelet"
    	why := "Kubelet needs time to handle node shutdown"
    	mode := "delay"
    
    	call := obj.Call("org.freedesktop.login1.Manager.Inhibit", 0, what, who, why, mode)
    	if call.Err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Aug 04 06:56:50 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  8. guava/src/com/google/common/util/concurrent/AbstractExecutionThreadService.java

                      // which case we should skip right down to shutdown.
                      if (isRunning()) {
                        try {
                          AbstractExecutionThreadService.this.run();
                        } catch (Throwable t) {
                          restoreInterruptIfIsInterruptedException(t);
                          try {
                            shutDown();
                          } catch (Exception ignored) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Dec 13 19:45:20 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/internal/generic/controller.go

    		}()
    	}
    
    	klog.Infof("Started %v workers for %v", c.options.Workers, c.options.Name)
    
    	// Wait for context cancel.
    	<-ctx.Done()
    
    	// Forcefully shutdown workqueue. Drop any enqueued items.
    	c.queue.ShutDown()
    
    	// Workqueue shutdown signals for workers to stop. Wait for all workers to
    	// clean up
    	waitGroup.Wait()
    
    	// Only way for workers to ever stop is for caller to cancel the context
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 04 18:33:12 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  10. cmd/signals.go

    			if err := httpServer.Shutdown(); err != nil && !errors.Is(err, http.ErrServerClosed) {
    				shutdownLogIf(context.Background(), err)
    			}
    		}
    
    		if objAPI := newObjectLayerFn(); objAPI != nil {
    			shutdownLogIf(context.Background(), objAPI.Shutdown(context.Background()))
    		}
    
    		if srv := newConsoleServerFn(); srv != nil {
    			shutdownLogIf(context.Background(), srv.Shutdown())
    		}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 01 17:57:52 UTC 2024
    - 2.8K bytes
    - Viewed (0)
Back to top