connection reset results in no response #59

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

Comments

Projects
None yet
2 participants

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 closed this in 39b4dc9 Jan 12, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment