]> git.ipfire.org Git - thirdparty/curl.git/commit
multi: use timeouts properly for MAX_RECV/SEND_SPEED
authorDaniel Stenberg <daniel@haxx.se>
Tue, 10 Aug 2010 12:12:05 +0000 (14:12 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 15 Aug 2010 11:16:39 +0000 (13:16 +0200)
commit9124bfba450d4e5909cd55aa1f45362fd54a6299
tree0d598aa78752c80b132577ef3b94861cefa5391f
parent232ad6549a684505efcbb6ed9d7a78943cc5f817
multi: use timeouts properly for MAX_RECV/SEND_SPEED

When detecting that the send or recv speed, the multi interface changes
state to TOOFAST and previously there was no timeout set that would
force a recheck but it would rely on the application to somehow call
libcurl anyway. This now sets a timeout for a suitable future time to
check again if the average transfer speed is then below the threshold
again.
lib/multi.c