-
-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore status message for HTTP/2 #45
Conversation
I found that in node 9.x an unexpected warning (as follows) had caught and failed the test.
So I fixed the test to recognize the type of warning. |
@dougwilson Would you mind if I ask you to proceed the workflow? |
Thanks! Sorry it was a holiday weekend. I'm not sure this module actually works with http2 yet, though, but landing this would imply it does. I'll need to check that out before we can land, to make sure http2 even works right. I wouldn't want people thinking it does with this and ending up with some kind of dos vector. Need to make sure the features all work and this module behaves correctly when it encounters broken pipes, half written reaponses, etc |
I am looking forward to have done it :) |
/cc @dougwilson Can you look at this? We are working on |
Hey @alexander-akait, it looks like Doug left off with this checking how this package works with http2. Did you have any added insight into if the rest of the behaviors of this module work with http2? Would you be willing to add tests and stuff which prove it? I don't think anyone is opposed to landing this, but with Doug having stepped back from the express project for now I didn't want to take action until I had time to investigate more. If you can assist with that I am sure we can make this happen. |
@wesleytodd Which test do you want to see?
I can't cover all possible scenarios correctly. But I make tests for a lot of scenaries and different middlewares - https://github.com/webpack/webpack-dev-server/tree/master/test, I honestly don't understand why the current solution is somehow dangerous. This is just an additional check, nothing more. Technically we could add here typescript jsdocs and see any uncompatibilities properties/methods/etc, but in my opinion I didn't find anything incompatible with
and all of them is not related to We already have test here - https://github.com/pillarjs/finalhandler/pull/45/files#diff-a561630bb56b82342bc66697aee2ad96efddcbc9d150665abd6fb7ecb7c0ab2fR581 and it covers almost all lines, try to run it and look coverage, uncovered lines have nothing to do with So to be honest I don't understand why it took so long... As I said before, this is just an additional check, we don't necessarily have to declare full support for everything, if there are any bugs or requests for improvements, we can implement them in the next versions. Thank you for your answer |
I didn't say it was dangerous. I am just seeking to come up to speed on how you are using this with
That would not be my concern at all, it would be if the ordering of events (which is primarily what this package was built to address) results in correct runtime behavior. It has nothing to do with types or incompatible properties.
This project is run by volunteers. It is large and gets TONS of issues and reports. Before earlier this year Doug was doing the herculean effort of all this by himself. Comments like this are not at all helpful and frankly not welcome here. Please do not downplay all of the free work Doug has done on this over the years.
I totally agree with this. So, back to the topic:
I would like to see at least one single test to indicate that this package works at all as expected with an |
I guess to be clear after re-reading the test which was written, I would expect a test which covers more than just the 404 case. Ideally the "happy path" is tested. |
👍 WIP
I said this not to offend anyone, but to understand the reason for the delay, because it is not clear from the top comments what is expected - more tests, documentation or something else, it just froze and that's it (#45 (comment)), and that's is why I wrote here. I also get hundreds of issues and questions and I understand perfectly well what volunteer work means. |
Sorry if I misunerstood the tone. I am also not sure if there were additional concerns Doug had. Let me know if my response above is enough to give you the detail you need to get this landed, by the comment about WIP for that test it sounds like you are good to go. I will attempt to follow up on this as quickly as I can to get this landed. |
Check out this one: https://github.com/pillarjs/finalhandler/pull/34/files#diff-a561630bb56b82342bc66697aee2ad96efddcbc9d150665abd6fb7ecb7c0ab2fR517-R545 If we could just combine all this it would be great. I got the CI fixed on |
@wesleytodd Done #53, I decide to make full testing to ensure all works fine |
To avoid setting status message that is not supported by HTTP/2, checked if the request's HTTP major version is less than 2.
Without this fix some of apps using this package shows warning as follows