Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for isSticky (0.38 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. pkg/ctrlz/assets/static/css/all.css

        .sidebar {
            font-size: 100%
        }
    }
    
    @supports (position: -webkit-sticky) or (position: sticky) {
        .sidebar {
            position: -webkit-sticky;
            position: sticky;
            top: 3.7rem;
            z-index: 1000
        }
    }
    
    @supports (position: -webkit-sticky) or (position: sticky) {
        .sidebar .directory {
            max-height: calc(100vh - 9rem)
        }
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 17:08:31 UTC 2023
    - 17.1K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  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/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)
  9. src/math/big/float.go

    	rbit := z.mant.bit(r) & 1    // rounding bit; be safe and ensure it's a single bit
    	// The sticky bit is only needed for rounding ToNearestEven
    	// or when the rounding bit is zero. Avoid computation otherwise.
    	if sbit == 0 && (rbit == 0 || z.mode == ToNearestEven) {
    		sbit = z.mant.sticky(r)
    	}
    	sbit &= 1 // be safe and ensure it's a single bit
    
    	// cut off extra words
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 44.5K bytes
    - Viewed (0)
  10. src/archive/tar/common.go

    	mode = fs.FileMode(fi.h.Mode).Perm()
    
    	// Set setuid, setgid and sticky bits.
    	if fi.h.Mode&c_ISUID != 0 {
    		mode |= fs.ModeSetuid
    	}
    	if fi.h.Mode&c_ISGID != 0 {
    		mode |= fs.ModeSetgid
    	}
    	if fi.h.Mode&c_ISVTX != 0 {
    		mode |= fs.ModeSticky
    	}
    
    	// Set file mode bits; clear perm, setuid, setgid, and sticky bits.
    	switch m := fs.FileMode(fi.h.Mode) &^ 07777; m {
    	case c_ISDIR:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 15 16:01:50 UTC 2024
    - 24.7K bytes
    - Viewed (0)
Back to top