Closed jvverde closed 9 years ago
I would welcome a PR :)
PR? What that means? Sorry I don't understand
oh, I see now: A Pull Request. Sorry I can do that now if you want. Please let me know
Ah sorry it stands for Pull Request.
If you can see an issue I'd really appreciate if you can write the fix with tests and pull request it.
But please write tests also :)
Sorry. My mistake. The ECONNRESET error is still there and my proposal doesn't solve it. I see now your code doesn't have any problem as you set the Content-Length as the buffer length and not the string length. Sorry about my mistake. However I still got frequently ECONNRESET when I try to burst several request to the same server (iriscouch.com)
No worries.
If you can track down why you're getting the ECONNRESETs please raise another issue cheers.
I had several errors ECONNRESET and after some research I found this suggestion http://stackoverflow.com/questions/18692580/node-js-post-causes-error-socket-hang-up-code-econnreset
And following it I try to change the following lines
To these ones
and apparently it solves my problems.