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.
In reply to Re^3: Hard timeout for LWP::UserAgent or similar
by BrowserUk
in thread Hard timeout for LWP::UserAgent or similar
by camelobserver
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |