added min-lag and max-lag

This commit is contained in:
Darren Ranalli 2002-11-11 18:42:21 +00:00
parent c2613e4079
commit dba252933d

View File

@ -125,6 +125,10 @@ class ClientRepository(DirectObject.DirectObject):
self.tcpConn.setNoDelay(1)
self.qcr=QueuedConnectionReader(self.qcm, 0)
self.qcr.addConnection(self.tcpConn)
minLag = config.GetFloat('min-lag', 0.)
maxLag = config.GetFloat('max-lag', 0.)
if minLag or maxLag:
self.qcr.startDelay(minLag, maxLag)
self.cw=ConnectionWriter(self.qcm, 0)
if self.hasProxy:
# Now we send an http CONNECT message on that