Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 44 for isSticky (0.21 sec)

  1. src/net/http/request_test.go

    		5))
    	if err != nil {
    		t.Fatal(err)
    	}
    }
    
    // Issue 14981: MaxBytesReader's return error wasn't sticky. It
    // doesn't technically need to be, but people expected it to be.
    func TestMaxBytesReaderStickyError(t *testing.T) {
    	isSticky := func(r io.Reader) error {
    		var log bytes.Buffer
    		buf := make([]byte, 1000)
    		var firstErr error
    		for {
    			n, err := r.Read(buf)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 18:42:34 UTC 2024
    - 44K bytes
    - Viewed (0)
  2. internal/logger/target/http/http.go

    	logChLock.Unlock()
    
    	newTicker := time.NewTicker(time.Second)
    	isTick := false
    
    	for {
    		isTick = false
    		select {
    		case _ = <-newTicker.C:
    			isTick = true
    		case entry, _ = <-globalBuffer:
    		case entry, ok = <-h.logCh:
    			if !ok {
    				return
    			}
    		case <-ctx.Done():
    			return
    		}
    
    		if !isTick {
    			atomic.AddInt64(&h.totalMessages, 1)
    
    			if !isDirQueue {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Jun 02 03:03:39 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  3. src/os/os_unix_test.go

    	// We have set a umask, but if the parent directory happens to have a default
    	// ACL, the umask may be ignored. To prevent spurious failures from an ACL,
    	// we create a non-sticky directory as a “control case” to compare against our
    	// sticky-bit “experiment”.
    	control := filepath.Join(dir, "control")
    	if err := Mkdir(control, 0755); err != nil {
    		t.Fatal(err)
    	}
    	cfi, err := Stat(control)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 18 17:32:43 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  4. src/math/big/nat_test.go

    		x := natFromString(test.x)
    		if got := x.sticky(test.i); got != test.want {
    			t.Errorf("#%d: %s.sticky(%d) = %v; want %v", i, test.x, test.i, got, test.want)
    		}
    		if test.want == 1 {
    			// all subsequent i's should also return 1
    			for d := uint(1); d <= 3; d++ {
    				if got := x.sticky(test.i + d); got != 1 {
    					t.Errorf("#%d: %s.sticky(%d) = %v; want %v", i, test.x, test.i+d, got, 1)
    				}
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 09 15:29:36 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  5. src/os/types.go

    	ModeSetuid     = fs.ModeSetuid     // u: setuid
    	ModeSetgid     = fs.ModeSetgid     // g: setgid
    	ModeCharDevice = fs.ModeCharDevice // c: Unix character device, when ModeDevice is set
    	ModeSticky     = fs.ModeSticky     // t: sticky
    	ModeIrregular  = fs.ModeIrregular  // ?: non-regular file; nothing else is known about this file
    
    	// Mask for the type bits. For regular files, none will be set.
    	ModeType = fs.ModeType
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 20:52:06 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  6. src/net/http/responsecontroller_test.go

    		}
    
    		w.Write([]byte("two"))
    		if err := ctl.Flush(); err == nil {
    			t.Errorf("after setting deadline: ctl.Flush() = nil, want non-nil")
    		}
    		// Connection errors are sticky, so resetting the deadline does not permit
    		// making more progress. We might want to change this in the future, but verify
    		// the current behavior for now. If we do change this, we'll want to make sure
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 19:20:31 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  7. src/os/exec/lp_windows_test.go

    	},
    	{
    		// LookPath(".\a") will fail before Dir is set, and that error is sticky.
    		name:  "relative to Dir with dot and extra PATH and no extension",
    		files: []string{`p\a.exe`, `p2\a.exe`},
    		PATH:  []string{".", "p2"},
    		dir:   `p`,
    		arg0:  `.\a`,
    		want:  `p\a.exe`,
    	},
    	{
    		// LookPath(".\a") will fail before Dir is set, and that error is sticky.
    		name:  "relative to Dir with different extension",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 19:38:12 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  8. src/math/big/bits_test.go

    			min = b
    		}
    		if i == 0 || b > max {
    			max = b
    		}
    	}
    	prec0 := uint(max + 1 - min)
    	if prec >= prec0 {
    		return x.Float()
    	}
    	// prec < prec0
    
    	// determine bit 0, rounding, and sticky bit, and result bits z
    	var bit0, rbit, sbit uint
    	var z Bits
    	r := max - int(prec)
    	for _, b := range x {
    		switch {
    		case b == r:
    			rbit = 1
    		case b < r:
    			sbit = 1
    		default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/device_compilation_profiler.cc

    }
    
    void RegisterExecutionForCluster(
        const NameAttrList& function,
        DeviceCompilationProfiler::ClusterCompileStats* stats) {
      ++stats->execution_count;
    
      // The is_megamorphic bit is "sticky".  We assume clusters that have been
      // observed to be megamorphic once stay megamorphic forever.
      if (!stats->is_megamorphic &&
          ShouldBeMegamorphic(stats->compile_count, stats->execution_count)) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 06:59:07 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  10. src/net/http/roundtrip_js.go

    // See https://fetch.spec.whatwg.org/#readablestream for more information.
    type streamReader struct {
    	pending []byte
    	stream  js.Value
    	err     error // sticky read error
    }
    
    func (r *streamReader) Read(p []byte) (n int, err error) {
    	if r.err != nil {
    		return 0, r.err
    	}
    	if len(r.pending) == 0 {
    		var (
    			bCh   = make(chan []byte, 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 11.8K bytes
    - Viewed (0)
Back to top