Curl::Easy#timeout with Multi works wrong #84

Open
crazyshot opened this Issue Aug 4, 2011 · 0 comments

Comments

Projects
None yet
1 participant

The timeout starts counting from the moment easy added to multi, not from multi.perform.
Example:

Benchmark.measure{
e=Curl::Easy.new('some stuck url')
m=Curl::Multi.new
e.timeout=5
m.add(e)
sleep 4
m.perform}
=> Benchmark::Tms:0x104b71bc8 @stime=0.0, @real=5.003986120224, @utime=0.0, @CsTime=0.0, @ToTal=0.0, @cutime=0.0, @Label=""

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment