Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for WithCancel (0.1 sec)

  1. cmd/admin-handlers.go

    	}
    	w.WriteHeader(http.StatusOK)
    }
    
    // NetperfHandler - perform mesh style network throughput test
    func (a adminAPIHandlers) NetperfHandler(w http.ResponseWriter, r *http.Request) {
    	ctx, cancel := context.WithCancel(r.Context())
    	defer cancel()
    
    	objectAPI, _ := validateAdminReq(ctx, w, r, policy.HealthInfoAdminAction)
    	if objectAPI == nil {
    		return
    	}
    
    	if !globalIsDistErasure {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 99.7K bytes
    - Viewed (0)
  2. cmd/server_test.go

    func (s *TestSuiteCommon) RestartTestServer(c *check) {
    	// Shutdown.
    	s.testServer.cancel()
    	s.testServer.Server.Close()
    	s.testServer.Obj.Shutdown(context.Background())
    
    	// Restart.
    	ctx, cancel := context.WithCancel(context.Background())
    
    	s.testServer.cancel = cancel
    	s.testServer = initTestServerWithBackend(ctx, c, s.testServer, s.testServer.Obj, s.testServer.rawDiskPaths)
    	if s.secure {
    		s.testServer.Server.StartTLS()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 15 16:28:02 UTC 2024
    - 116.3K bytes
    - Viewed (0)
Back to top