Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for _updateInterval (0.15 sec)

  1. internal/deadlineconn/deadlineconn.go

    		now := time.Now()
    		if now.Sub(c.readSetAt) > updateInterval {
    			c.Conn.SetReadDeadline(now.Add(c.readDeadline + updateInterval))
    			c.readSetAt = now
    		}
    	}
    }
    
    func (c *DeadlineConn) setWriteDeadline() {
    	if c.writeDeadline > 0 {
    		now := time.Now()
    		if now.Sub(c.writeSetAt) > updateInterval {
    			c.Conn.SetWriteDeadline(now.Add(c.writeDeadline + updateInterval))
    			c.writeSetAt = now
    		}
    	}
    }
    
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri Jul 26 17:40:11 UTC 2024
    - 2.6K bytes
    - Viewed (0)
Back to top