Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 69 for isSticky (0.22 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. src/os/sticky_bsd.go

    // license that can be found in the LICENSE file.
    
    //go:build aix || darwin || dragonfly || freebsd || (js && wasm) || netbsd || openbsd || solaris || wasip1
    
    package os
    
    // According to sticky(8), neither open(2) nor mkdir(2) will create
    // a file with the sticky bit set.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 07 23:34:21 UTC 2023
    - 425 bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/compress/zlib/reader_test.go

    			}
    			continue
    		}
    		s := b.String()
    		if s != tt.raw {
    			t.Errorf("%s: got %d-byte %q want %d-byte %q", tt.desc, n, s, len(tt.raw), tt.raw)
    		}
    
    		// Check for sticky errors.
    		if n, err := zr.Read([]byte{0}); n != 0 || err != io.EOF {
    			t.Errorf("%s: Read() = (%d, %v), want (0, io.EOF)", tt.desc, n, err)
    		}
    		if err := zr.Close(); err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 30 02:16:17 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top