Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for writeDeadline (0.04 sec)

  1. internal/deadlineconn/deadlineconn.go

    	// Do not set a Write deadline, if upstream wants to cancel all reads.
    	if c.writeDeadline <= 0 || c.abortWrites.Load() || c.infWrites.Load() {
    		return
    	}
    
    	c.mu.Lock()
    	defer c.mu.Unlock()
    	if c.abortWrites.Load() {
    		return
    	}
    	now := time.Now()
    	if now.Sub(c.writeSetAt) > updateInterval {
    		c.Conn.SetWriteDeadline(now.Add(c.writeDeadline + updateInterval))
    		c.writeSetAt = now
    	}
    }
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Mon Dec 02 13:21:17 UTC 2024
    - 5.1K bytes
    - Viewed (0)
Back to top