Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for eof (0.17 sec)

  1. src/bytes/buffer_test.go

    	buf.Reset()
    
    	// check at EOF
    	if err := buf.UnreadRune(); err == nil {
    		t.Fatal("UnreadRune at EOF: got no error")
    	}
    	if _, _, err := buf.ReadRune(); err == nil {
    		t.Fatal("ReadRune at EOF: got no error")
    	}
    	if err := buf.UnreadRune(); err == nil {
    		t.Fatal("UnreadRune after ReadRune at EOF: got no error")
    	}
    
    	// check not at EOF
    	buf.Write(b)
    	for r := rune(0); r < NRune; r++ {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 13:31:36 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  2. cmd/metacache-set.go

    				// We have enough and we have more.
    				// Do not return io.EOF
    				if resCh != nil {
    					resErr = nil
    					select {
    					case resCh <- results:
    					case <-ctx.Done():
    					}
    					resCh = nil
    					returned = true
    				}
    				continue
    			}
    			results.o = append(results.o, entry)
    		}
    		if resCh != nil {
    			resErr = io.EOF
    			select {
    			case <-ctx.Done():
    				// Nobody wants it.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 17:59:08 GMT 2024
    - 30.4K bytes
    - Viewed (0)
  3. internal/ioutil/ioutil.go

    			remaining := totalSize - written
    			if remaining < int64(len(buf)) {
    				buf = buf[:remaining]
    			}
    		}
    
    		nr, err := io.ReadFull(r, buf)
    		eof := errors.Is(err, io.EOF) || errors.Is(err, io.ErrUnexpectedEOF)
    		if err != nil && !eof {
    			return written, err
    		}
    
    		buf = buf[:nr]
    		var (
    			n  int
    			un int
    			nw int64
    		)
    
    		remain := len(buf) % DirectioAlignSize
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 11:26:59 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  4. .github/workflows/check-bad-merge.yml

          - name: Read output file
            id: read_output
            if: ${{ always() }}
            run: |
              cat output.txt
              OUTPUT=$(cat output.txt)
              echo "OUTPUT<<EOF" >> $GITHUB_ENV
              echo "$OUTPUT" >> $GITHUB_ENV
              echo "EOF" >> $GITHUB_ENV
          - name: Comment on PR if check failed
            if: ${{ failure() }}
            uses: actions/github-script@v7
            with:
    Others
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Thu May 02 09:13:16 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  5. cmd/xl-storage-disk-id-check.go

    // that is not io.EOF.
    func diskHealthCheckOK(ctx context.Context, err error) bool {
    	// Check if context has a disk health check.
    	tracker, ok := ctx.Value(healthDiskCtxKey{}).(*healthDiskCtxValue)
    	if !ok {
    		// No tracker, return
    		return err == nil || errors.Is(err, io.EOF)
    	}
    	if err == nil || errors.Is(err, io.EOF) {
    		tracker.logSuccess()
    		return true
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 33K bytes
    - Viewed (0)
  6. cmd/storage-rest-client.go

    		return errAuthentication
    	case errRPCAPIVersionUnsupported.Error():
    		return errRPCAPIVersionUnsupported
    	case errServerTimeMismatch.Error():
    		return errServerTimeMismatch
    	case io.EOF.Error():
    		return io.EOF
    	case io.ErrUnexpectedEOF.Error():
    		return io.ErrUnexpectedEOF
    	case errDiskStale.Error():
    		return errDiskNotFound
    	case errDiskNotFound.Error():
    		return errDiskNotFound
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 26.1K bytes
    - Viewed (0)
  7. cmd/erasure-common.go

    	}
    
    	ignoredErrs := []error{
    		errFileNotFound,
    		errVolumeNotFound,
    		errFileVersionNotFound,
    		io.ErrUnexpectedEOF, // some times we would read without locks, ignore these errors
    		io.EOF,              // some times we would read without locks, ignore these errors
    		context.DeadlineExceeded,
    		context.Canceled,
    	}
    	ignoredErrs = append(ignoredErrs, objectOpIgnoredErrs...)
    
    	errs := g.Wait()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 4.6K bytes
    - Viewed (0)
  8. cmd/sftp-server-driver.go

    // Modeled after strings.Reader's ReadAt() implementation
    func (f listerAt) ListAt(ls []os.FileInfo, offset int64) (int, error) {
    	var n int
    	if offset >= int64(len(f)) {
    		return 0, io.EOF
    	}
    	n = copy(ls, f[offset:])
    	if n < len(ls) {
    		return n, io.EOF
    	}
    	return n, nil
    }
    
    func (f *sftpDriver) Filelist(r *sftp.Request) (la sftp.ListerAt, err error) {
    	stopFn := globalSftpMetrics.log(r, f.AccessKey())
    	defer stopFn(err)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 19 12:23:42 GMT 2024
    - 12.9K bytes
    - Viewed (0)
  9. internal/grid/grid_test.go

    		}
    		if n == 10 {
    			close(stream.Requests)
    			continue
    		}
    		n++
    		t.Log("sending new client request")
    		stream.Requests <- []byte(strconv.Itoa(n))
    	}
    	t.Log("EOF. 10 Roundtrips:", time.Since(start))
    }
    
    func testStreamCancel(t *testing.T, local, remote *Manager) {
    	defer testlogger.T.SetErrorTB(t)()
    	errFatal := func(err error) {
    		t.Helper()
    		if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 30 15:03:35 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  10. cmd/object-api-interface.go

    	// Object operations.
    
    	// GetObjectNInfo returns a GetObjectReader that satisfies the
    	// ReadCloser interface. The Close method runs any cleanup
    	// functions, so it must always be called after reading till EOF
    	//
    	// IMPORTANTLY, when implementations return err != nil, this
    	// function MUST NOT return a non-nil ReadCloser.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 17K bytes
    - Viewed (0)
Back to top