Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^4: AnyEvent timers by EV

by Anonymous Monk
on Apr 05, 2015 at 11:30 UTC ( #1122469=note: print w/replies, xml ) Need Help??


in reply to Re^3: AnyEvent timers by EV
in thread AnyEvent timers by EV

300 sec timer is unnecessary
Im intersting only on 2s timer for request
My guess how it should work is:
1) try to GET with timeout 2s (timer set to internal time + 2sec, but internal time has lag 5s)
2) update internal time at ->recv.
3) fire timeout for GET, because internal time now = real time, and timer+2s is now in the past
4) throw error about timeout...
But... maybe before check timeout for connection it already has success status for GET and timeout at this situation is dropped away

Replies are listed 'Best First'.
Re^5: AnyEvent timers by EV
by bash (Scribe) on Apr 05, 2015 at 12:36 UTC
    It was me. Sorry, lost login )

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1122469]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2022-12-03 13:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?