Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for canceling (0.19 sec)

  1. internal/grid/stream.go

    type Stream struct {
    	// responses from the remote server.
    	// Channel will be closed after error or when remote closes.
    	// All responses *must* be read by the caller until either an error is returned or the channel is closed.
    	// Canceling the context will cause the context cancellation error to be returned.
    	responses <-chan Response
    	cancel    context.CancelCauseFunc
    
    	// Requests sent to the server.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. internal/grid/muxserver.go

    	for {
    		select {
    		case <-m.ctx.Done():
    			return
    		case <-t.C:
    			last := time.Since(time.Unix(atomic.LoadInt64(&m.LastPing), 0))
    			if last > 4*m.clientPingInterval {
    				gridLogIf(m.ctx, fmt.Errorf("canceling remote connection %s not seen for %v", m.parent, last))
    				m.close()
    				return
    			}
    		}
    	}
    }
    
    // checkSeq will check if sequence number is correct and increment it by 1.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  3. src/net/http/transport.go

    				// HTTP/2 requests are not cancelable with CancelRequest,
    				// so we have no further need for the request context.
    				//
    				// On the HTTP/1 path, roundTrip takes responsibility for
    				// canceling the context after the response body is read.
    				cancel(errRequestDone)
    			}
    			resp.Request = origReq
    			return resp, nil
    		}
    
    		// Failed. Clean up and determine whether to retry.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
  4. cmd/erasure-server-pool-decom.go

    	}
    
    	if z.SinglePool() {
    		return errInvalidArgument
    	}
    
    	z.poolMetaMutex.Lock()
    	defer z.poolMetaMutex.Unlock()
    
    	fn := z.decommissionCancelers[idx]
    	if fn == nil {
    		// canceling a decommission before it started return an error.
    		return errDecommissionNotStarted
    	}
    
    	defer fn() // cancel any active thread.
    
    	if z.poolMeta.DecommissionCancel(idx) {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 06 14:30:43 UTC 2024
    - 41.5K bytes
    - Viewed (1)
  5. src/crypto/tls/handshake_server_test.go

    			if tc.expectedCipher != hs.suite.id {
    				t.Errorf("unexpected cipher chosen: want %d, got %d", tc.expectedCipher, hs.suite.id)
    			}
    		})
    	}
    }
    
    // TestServerHandshakeContextCancellation tests that canceling
    // the context given to the server side conn.HandshakeContext
    // interrupts the in-progress handshake.
    func TestServerHandshakeContextCancellation(t *testing.T) {
    	c, s := localPipe(t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 64.7K bytes
    - Viewed (0)
  6. src/os/exec/exec.go

    			// (Perhaps c.Wait hadn't been called, or perhaps it happened to race with
    			// c.ctx being canceled.) Don't inject a needless error.
    		} else {
    			err = wrappedError{
    				prefix: "exec: canceling Cmd",
    				err:    interruptErr,
    			}
    		}
    	}
    	if c.WaitDelay == 0 {
    		resultc <- ctxResult{err: err}
    		return
    	}
    
    	timer := time.NewTimer(c.WaitDelay)
    	select {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 41.4K bytes
    - Viewed (0)
  7. src/os/exec/exec_test.go

    			// Panic instead of calling t.Fatal so that we get a goroutine dump.
    			// We want to know exactly what the os/exec goroutines got stuck on.
    			debug.SetTraceback("system")
    			panic("canceling context did not stop program")
    		}
    
    		// Back off exponentially (up to 1-second sleeps) to give the OS time to
    		// terminate the process.
    		delay *= 2
    		if delay > 1*time.Second {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 20:13:53 UTC 2024
    - 48.4K bytes
    - Viewed (0)
  8. src/net/http/transport_test.go

    	go func() {
    		_, err := cl.Do(req)
    		eventLog.Printf("Get error = %v", err != nil)
    		test.checkErr("Get", err)
    		gotres <- true
    	}()
    
    	inDial <- true
    
    	eventLog.Printf("canceling")
    	test.cancel(tr, req)
    	test.cancel(tr, req) // used to panic on second call to Transport.Cancel
    
    	if d, ok := t.Deadline(); ok {
    		// When the test's deadline is about to expire, log the pending events for
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  9. internal/grid/muxclient.go

    type Response struct {
    	Msg []byte
    	Err error
    }
    
    func newMuxClient(ctx context.Context, muxID uint64, parent *Connection) *muxClient {
    	ctx, cancelFn := context.WithCancelCause(ctx)
    	return &muxClient{
    		MuxID:              muxID,
    		ctx:                ctx,
    		cancelFn:           cancelFn,
    		parent:             parent,
    		LastPong:           time.Now().UnixNano(),
    		BaseFlags:          parent.baseFlags,
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  10. pkg/kubelet/certificate/kubelet.go

    func (m *kubeletServerCertificateDynamicFileManager) Start() {
    	var ctx context.Context
    	ctx, m.cancelFn = context.WithCancel(context.Background())
    	go m.dynamicCertificateContent.Run(ctx, 1)
    }
    
    // Stop stops watching the certificate and key files
    func (m *kubeletServerCertificateDynamicFileManager) Stop() {
    	if m.cancelFn != nil {
    		m.cancelFn()
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 03:07:16 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top