danwrong/restler — Issue #59: connection reset results in no response
Author: matthewleon
Created: 2012-01-07 01:02:27+00:00
State: open

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.
```javascript
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)
})()
```