Uh oh!
There was an error while loading. Please reload this page.
win,test: fix test-tls-over-http-tunnel - #1066
Conversation
domenic
commented
Mar 5, 2015
I wonder why we were exhibiting different behavior on Unix vs. Windows in the first place, even for a messed-up test? |
tellnes
commented
Mar 5, 2015
I'm not a native english speaker, so I'm probably not the best person to review commit messages, but it looks fine to me. |
piscisaureus
commented
Mar 5, 2015
@domenic I don't know. Strangely enough this test was originally written on windows by @igorzi so it likely passed at some point. But it seems that something in the tls or http implementations has changed such that a connection is now closed (as it should) if the @indutny Maybe knows more... @tellnes I noticed you were the last person touching this test so I added you as a reviewer. If you don't know, nevermind. |
This patch fixes an ECONNRESET error: * Correct the spelling of the 'Connection' header. * Add a 'Connection: keep-alive' header to the request that gets sent through the tunnel, so the receiving end doesn't destroy the connection after the transaction is complete. In addition this patch cleans up the test a bit: * Replace some uses of `Socket.destroy()` by the slightly more graceful `destroySoon()`, which ensures that all write buffers are fully flushed before destroying a connection. * Remove the usage of the deprecated 'Proxy-connections' header.
tellnes
commented
Mar 5, 2015
When I touched this test I did notice it needed some love and planned to to that after that pr was landed, but I've forgotten that since then. But I still think we should remove every mention of |
de3fe81 to
c55cf65Comparepiscisaureus
commented
Mar 5, 2015
Done, updated. Thanks for the suggestion. |
domenic
commented
Mar 5, 2015
We should probably file a follow-up bug regarding the observable behavior differences between platforms? Or is this low-level enough that we don't anticipate people noticing? |
seishun
commented
Mar 5, 2015
Well, the test passes for me now. Can't say anything about the validity of the changes though. |
indutny
commented
Mar 5, 2015
LGTM, with a follow-up bug for investigating the behavior. |
piscisaureus
commented
Mar 6, 2015
piscisaureus
commented
Mar 13, 2015
@indutny Can you prioritize investigating this? I can't figure out why this happens. |
piscisaureus
commented
Mar 13, 2015
piscisaureus
commented
Mar 13, 2015
It turns out that this test catches a serious issue. Therefore let's not change the test. |
indutny
commented
Mar 13, 2015
@piscisaureus do we have a follow-up issue where I can comment? |
indutny
commented
Mar 16, 2015
IFNG (Information for the Next Generation): this is an issue related to the TLSWrap implementation itself, nothing to do with StreamBase changes. |
This patch fixes an ECONNRESET error on Windows by:
headers in the proxy response.
sent through the tunnel, so the receiving end doesn't destroy the
connection after the transaction is complete.
In addition this patch replaces some uses of
Socket.destroy()by theslightly more graceful
destroySoon(), which ensures that all writebuffers are fully flushed before destroying a connection.
@tellnes I'm not sure if I worded the commit message correctly. Can you review it?
R=@tellnes
R=@rvagg
R=@iojs/platform-windows