Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 732 for deadlines (0.13 sec)

  1. internal/deadlineconn/deadlineconn.go

    package deadlineconn
    
    import (
    	"net"
    	"time"
    )
    
    // DeadlineConn - is a generic stream-oriented network connection supporting buffered reader and read/write timeout.
    type DeadlineConn struct {
    	net.Conn
    	readDeadline  time.Duration // sets the read deadline on a connection.
    	writeDeadline time.Duration // sets the write deadline on a connection.
    }
    
    // Sets read deadline
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  2. src/os/timeout_test.go

    		t.Errorf("SetWriteDeadline on file returned %v, wanted %v", err, os.ErrNoDeadline)
    	}
    }
    
    // noDeadline is a zero time.Time value, which cancels a deadline.
    var noDeadline time.Time
    
    var readTimeoutTests = []struct {
    	timeout time.Duration
    	xerrs   [2]error // expected errors in transition
    }{
    	// Tests that read deadlines work, even if there's data ready
    	// to be read.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 14 00:03:57 UTC 2023
    - 17.1K bytes
    - Viewed (0)
  3. src/internal/poll/fd_plan9.go

    	fdmu fdMutex
    
    	Destroy func()
    
    	// deadlines
    	rmu       sync.Mutex
    	wmu       sync.Mutex
    	raio      *asyncIO
    	waio      *asyncIO
    	rtimer    *time.Timer
    	wtimer    *time.Timer
    	rtimedout bool // set true when read deadline has been reached
    	wtimedout bool // set true when write deadline has been reached
    
    	// Whether this is a normal file.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 14:00:54 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  4. internal/http/dial_linux.go

    		}
    		conn, err := dialer.DialContext(ctx, network, addr)
    		if err != nil {
    			return nil, err
    		}
    		if opts.DriveOPTimeout != nil {
    			// Read deadlines are sufficient for now as per various
    			// scenarios of hung node detection, we may add Write deadlines
    			// if needed later on.
    			return deadlineconn.New(conn).WithReadDeadline(opts.DriveOPTimeout()), nil
    		}
    		return conn, nil
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 22 23:07:14 UTC 2024
    - 4.8K bytes
    - Viewed (3)
  5. src/net/main_test.go

    		printInflightSockets()
    		printSocketStats()
    	}
    	forceCloseSockets()
    	os.Exit(st)
    }
    
    // mustSetDeadline calls the bound method m to set a deadline on a Conn.
    // If the call fails, mustSetDeadline skips t if the current GOOS is believed
    // not to support deadlines, or fails the test otherwise.
    func mustSetDeadline(t testing.TB, m func(time.Time) error, d time.Duration) {
    	err := m(time.Now().Add(d))
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  6. src/internal/poll/fd_poll_js.go

    // SetDeadline sets the read and write deadlines associated with fd.
    func (fd *FD) SetDeadline(t time.Time) error {
    	return setDeadlineImpl(fd, t, 'r'+'w')
    }
    
    // SetReadDeadline sets the read deadline associated with fd.
    func (fd *FD) SetReadDeadline(t time.Time) error {
    	return setDeadlineImpl(fd, t, 'r')
    }
    
    // SetWriteDeadline sets the write deadline associated with fd.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 25 00:12:40 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  7. src/net/timeout_test.go

    				if delta <= 1 && d.Timeout <= 1 {
    					t.Fatalf("can't reduce Timeout or Deadline")
    				}
    				if delta > 1 {
    					delta /= 2
    					t.Logf("reducing Deadline delta to %v", delta)
    				}
    				if d.Timeout > 1 {
    					d.Timeout /= 2
    					t.Logf("reducing Timeout to %v", d.Timeout)
    				}
    			}
    
    			if d.Deadline.IsZero() || afterDial.Before(d.Deadline) {
    				delay := afterDial.Sub(beforeDial)
    				if delay < d.Timeout {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 18:06:55 UTC 2024
    - 30K bytes
    - Viewed (0)
  8. pkg/kubelet/active_deadline.go

    )
    
    // activeDeadlineHandler knows how to enforce active deadlines on pods.
    type activeDeadlineHandler struct {
    	// the clock to use for deadline enforcement
    	clock clock.Clock
    	// the provider of pod status
    	podStatusProvider status.PodStatusProvider
    	// the recorder to dispatch events when we identify a pod has exceeded active deadline
    	recorder record.EventRecorder
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 10 10:20:09 UTC 2021
    - 3.2K bytes
    - Viewed (0)
  9. .github/workflows/mint.yml

            run: |
              ${GITHUB_WORKSPACE}/.github/workflows/run-mint.sh "erasure" "minio" "minio123" "${{ steps.vars.outputs.sha_short }}"
    
          # FIXME: renable this back when we have a valid way to add deadlines for PUT()s (internode CreateFile)
          # - name: resiliency
          #   run: |
          #     ${GITHUB_WORKSPACE}/.github/workflows/run-mint.sh "resiliency" "minio" "minio123" "${{ steps.vars.outputs.sha_short }}"
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 04 15:12:57 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  10. src/internal/poll/fd_poll_runtime.go

    }
    
    // SetDeadline sets the read and write deadlines associated with fd.
    func (fd *FD) SetDeadline(t time.Time) error {
    	return setDeadlineImpl(fd, t, 'r'+'w')
    }
    
    // SetReadDeadline sets the read deadline associated with fd.
    func (fd *FD) SetReadDeadline(t time.Time) error {
    	return setDeadlineImpl(fd, t, 'r')
    }
    
    // SetWriteDeadline sets the write deadline associated with fd.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:59 UTC 2024
    - 4.2K bytes
    - Viewed (0)
Back to top