Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connection reset results in no response #59

Closed
matthewleon opened this issue Jan 7, 2012 · 0 comments
Closed

connection reset results in no response #59

matthewleon opened this issue Jan 7, 2012 · 0 comments

Comments

@matthewleon
Copy link

Running curl on http://www.westnipissingouest.ca results in the following:

* Recv failure: Connection reset by peer
* Closing connection #0

The following code will simply hang.

var rest = require('./')

var done = false
rest.get('http://www.westnipissingouest.ca').on('complete', function(data, err) {
  done = true
  sys.puts(data)
  sys.puts(err)
})

;(function loopUntilDone() {
  if (!done) process.nextTick(loopUntilDone)
})()
@ayoung ayoung closed this as completed in 39b4dc9 Jan 12, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants