disable keep alive timeout, headers timeout and log any server timeouts #85
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This cures my issue with randomly aborted connections (#60). I tried to write a test for this, but it's actually hard to reproduce -- the easiest way to elicit this was to debug the node process while making multiple concurrent connections to it.
I think what's happening is that you get a .NET connection pooled, connected http connection which node then closes when data is sent to it as in:
nodejs/node#26165
also as per this PR:
nodejs/node#33307
the headers timeout cannot be disabled (but it can be set to a very long value, which is what I've done). I also disabled the keepalive timeout for sockets as that's another possible reason that node is dropping the pooled connections.