in reply to Re^2: Hard timeout for LWP::UserAgent or similar
in thread Hard timeout for LWP::UserAgent or similar

So a trickling stream of data coming in could mean the timeout never getting triggered, or getting triggered way later than timeout.

Remember that tcp/ip coalesces small writes into larger packets before transmission. So the slower the trickle, the longer the time between packets.

In my simplistic testing, a 250 millisecond timeout never took longer than 315 milliseconds to actually return. If 315 is too long for you, try scaling back the value you set to say 200.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re^3: Hard timeout for LWP::UserAgent or similar