Skip to content

Instantly share code, notes, and snippets.

@amcintyre99
Created July 25, 2013 03:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amcintyre99/13d18b0357949ac17019 to your computer and use it in GitHub Desktop.
Save amcintyre99/13d18b0357949ac17019 to your computer and use it in GitHub Desktop.
request timeout cb
setTimeout function so request restarts
request end, close, error cb
if timeout cb already run
do nothing (happens a lot since end, close and error runs on timeouts)
else
setTimeout function so request restarts
but i dont know how to determine if the timeout cb has already run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment