Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for WithReadDeadline (0.08 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. internal/http/dial_linux.go

    		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
    	}
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Jul 23 10:53:03 GMT 2024
    - 5K bytes
    - Click Count (0)
  2. internal/http/listener.go

    func (listener *httpListener) Accept() (conn net.Conn, err error) {
    	select {
    	case result := <-listener.acceptCh:
    		if result.err != nil {
    			return nil, result.err
    		}
    		return deadlineconn.New(result.conn).WithReadDeadline(listener.opts.IdleTimeout).WithWriteDeadline(listener.opts.IdleTimeout), result.err
    	case <-listener.ctxDoneCh:
    	}
    	return nil, syscall.EINVAL
    }
    
    // Close - closes underneath all TCP listeners.
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 5.8K bytes
    - Click Count (0)
Back to Top