FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test: https server close event by braydonf · Pull Request #5106 · nodejs/node · GitHub

/ node Public

test: https server close event - #5106

Closed
braydonf wants to merge 1 commit into
nodejs:masterfrom
braydonf:server-close
Closed

test: https server close event#5106
braydonf wants to merge 1 commit into
nodejs:masterfrom
braydonf:server-close

Conversation

braydonf commented Feb 5, 2016

Copy link
Copy Markdown

Closes: #5083

mscdex added https Issues or PRs related to the https subsystem. test Issues and PRs related to the tests. labels Feb 5, 2016

mscdex commented Feb 5, 2016

Copy link
Copy Markdown
Contributor

The commit should target the test: subsystem rather than net:.

braydonf changed the title net: add test for https server close event test: add test for https server close event Feb 5, 2016
Comment thread test/parallel/test-https-close.js Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Nit: Instead of using the serverCloseEventCalled boolean, use common.mustCall() on the close callback.

Comment thread test/parallel/test-https-close.js Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

const here please

jasnell commented Feb 7, 2016

Copy link
Copy Markdown
Member

LGTM if CI is green. Few nits tho.

jasnell commented Feb 7, 2016

Copy link
Copy Markdown
Member

Trott commented Feb 7, 2016

Copy link
Copy Markdown
Member

@jasnell This is a test that needs a bugfix. It is intended to fail. It should not land until there is a bug fix (assuming this is a bug and not expected behavior being misconstrued as a bug, but it looks like a genuine bug to me).

Technically, I guess this shouldn't be a pull request and should instead be put in #5083. But the folks reporting this have done such a great job tracking down everything relevant to their bug report that I'm not inclined to complain.

Anyway, with that context, I guess we can look at the all-red CI as a win. (Well, except the lint warning which says that assert is defined but not used.)

braydonf commented Feb 8, 2016

Copy link
Copy Markdown
Author

For a bug fix, restoring the server property on socket fixes this particular test. This can be done by removing lines (381 and 382) in TLSSocket.prototype._init of _tls_wrap.js:

 if (socket && socket.server === this.server)
    socket.server = null;

However these two tests will not pass:

  • test/parallel/test-tls-dhe.js
  • test/parallel/test-tls-ticket-cluster.js

braydonf commented Feb 8, 2016

Copy link
Copy Markdown
Author

Also, yep the goal with opening as a PR is to have CI run and having the failing tests (so we can fix). We can put a WIP on this if that's necessary.

braydonf changed the title test: add test for https server close event https: fix https server close event Feb 9, 2016

braydonf commented Feb 9, 2016

Copy link
Copy Markdown
Author

Bug fix found, all tests passing locally.

Trott commented Feb 9, 2016

Copy link
Copy Markdown
Member

Trott commented Feb 9, 2016

Copy link
Copy Markdown
Member

CI looks good. (Just one known flaky test that should be fixed when #5154 lands.)

LGTM but sign-off from someone who has spent some quality time with _tls_wrap.js would probably be good. Maybe one or more of @bnoordhuis @indutny @shigeki @mscdex ?

mscdex added tls Issues and PRs related to the tls subsystem. net Issues and PRs related to the net subsystem. and removed https Issues or PRs related to the https subsystem. labels Feb 9, 2016

indutny commented Feb 16, 2016

Copy link
Copy Markdown
Member

Sorry, just found this after proposing #5262 . Please let me know if you still want to pursue this PR's approach.

indutny commented Feb 17, 2016

Copy link
Copy Markdown
Member

@braydonf 7885b1d has been landed. Is this PR still relevant?

Copy link
Copy Markdown
Author

I ran the test included in this PR with the fix in #5262 and everything passed, perhaps we should include this test also.

indutny commented Feb 17, 2016

Copy link
Copy Markdown
Member

@braydonf sounds like a good idea, may I ask you to strip all other changes from this PR then?

Copy link
Copy Markdown
Author

Okay rebased with only the test included.

Made a backup of the branch with other changes, for reference.

braydonf changed the title https: fix https server close event test: https server close event Feb 17, 2016

indutny commented Feb 17, 2016

Copy link
Copy Markdown
Member

indutny commented Feb 17, 2016

Copy link
Copy Markdown
Member

CI is green except one unrelated failure.

jasnell commented Feb 19, 2016

Copy link
Copy Markdown
Member

LGTM

indutny commented Feb 19, 2016

Copy link
Copy Markdown
Member

Landing.

indutny commented Feb 19, 2016

Copy link
Copy Markdown
Member

LGTM

indutny commented Feb 19, 2016

Copy link
Copy Markdown
Member

Landed in 210e65a, thank you!

indutny closed this Feb 19, 2016
indutny pushed a commit that referenced this pull request Feb 19, 2016
PR-URL: #5106
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Fedor Indutny <fedor@indutny.com>
rvagg pushed a commit that referenced this pull request Feb 21, 2016
PR-URL: #5106
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Fedor Indutny <fedor@indutny.com>

Copy link
Copy Markdown
Contributor

This test is failing in v4.x-staging 😭
@nodejs/testing thoughts?

Trott commented Mar 1, 2016

Copy link
Copy Markdown
Member

@thealphanerd I think this test depends on 7885b1d so if that didn't land on v4.x-staging, that might explain it.

Copy link
Copy Markdown
Contributor

7885b1d just landed and this is now landing cleanly. Thank you as always for your swift and accurate response

MylesBorins pushed a commit that referenced this pull request Mar 1, 2016
PR-URL: #5106
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Fedor Indutny <fedor@indutny.com>
MylesBorins pushed a commit that referenced this pull request Mar 1, 2016
PR-URL: #5106
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Fedor Indutny <fedor@indutny.com>
MylesBorins pushed a commit that referenced this pull request Mar 2, 2016
PR-URL: #5106
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Fedor Indutny <fedor@indutny.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

net Issues and PRs related to the net subsystem. test Issues and PRs related to the tests. tls Issues and PRs related to the tls subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants


Back | FazBrowse Home | New Git URL