-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
test: Verify request payload is uploaded consistently #34066
Conversation
3a9b24a
to
02d39b8
Compare
@awwright there are some failing tests which keep this from landing. Do you still want to work on this? |
This issue/PR was marked as stalled, it will be automatically closed in 30 days. If it should remain open, please leave a comment explaining why it should remain open. |
@aduh95 Those failed tests are bugs in the HTTP implementation that need to be fixed. However I'm not sure what the process is for doing this, exactly. |
I think the process is to move those tests to |
@aduh95 I rebased and moved the tests, I'm hoping that is sufficient? |
Regarding the naming of the file, what about:
|
That seems reasonable. It's not obvious in how the files are written, but I'm trying to test the behavior in both directions, too. I actually forget off-hand if the bug is in requests only, or both request and responses. |
@awwright Do you want to rename those files so we can move forward with this? |
This issue/PR was marked as stalled, it will be automatically closed in 30 days. If it should remain open, please leave a comment explaining why it should remain open. |
Closing this because it has stalled. Feel free to reopen if this PR is still relevant, or to ping the collaborator who labelled it stalled if you have any questions. |
@nodejs/http |
I am a little swamped atm. I don't think I am going to be able to work on it now. Sorry. |
What else exactly does this need? Can we not merge a test that's showing an actual, live bug? |
7cb53b7
to
b753797
Compare
Node.js seems to change how it is uploaded based on the method, but HTTP doesn't make any distinction. Co-authored-by: Austin Wright <[email protected]> Co-authored-by: Lenvin Gonsalves <[email protected]> Co-authored-by: Antoine du Hamel <[email protected]>
Landed in d4e365f |
Node.js seems to change how it is uploaded based on the method, but HTTP doesn't make any distinction. Co-authored-by: Austin Wright <[email protected]> Co-authored-by: Lenvin Gonsalves <[email protected]> Co-authored-by: Antoine du Hamel <[email protected]> PR-URL: #34066 Refs: #27880 Reviewed-By: James M Snell <[email protected]>
Node.js seems to change how it is uploaded based on the method, but HTTP doesn't make any distinction. Co-authored-by: Austin Wright <[email protected]> Co-authored-by: Lenvin Gonsalves <[email protected]> Co-authored-by: Antoine du Hamel <[email protected]> PR-URL: #34066 Refs: #27880 Reviewed-By: James M Snell <[email protected]>
Node.js seems to change how it is uploaded based on the method, but HTTP doesn't make any distinction. Co-authored-by: Austin Wright <[email protected]> Co-authored-by: Lenvin Gonsalves <[email protected]> Co-authored-by: Antoine du Hamel <[email protected]> PR-URL: #34066 Refs: #27880 Reviewed-By: James M Snell <[email protected]>
Node.js seems to change how it is uploaded based on the method, but HTTP doesn't make any distinction. Co-authored-by: Austin Wright <[email protected]> Co-authored-by: Lenvin Gonsalves <[email protected]> Co-authored-by: Antoine du Hamel <[email protected]> PR-URL: #34066 Refs: #27880 Reviewed-By: James M Snell <[email protected]>
Node.js seems to change how it is uploaded based on the method, but HTTP doesn't make any distinction. Co-authored-by: Austin Wright <[email protected]> Co-authored-by: Lenvin Gonsalves <[email protected]> Co-authored-by: Antoine du Hamel <[email protected]> PR-URL: nodejs#34066 Refs: nodejs#27880 Reviewed-By: James M Snell <[email protected]>
Node.js seems to change how it is uploaded based on the method, but HTTP doesn't make any distinction. Co-authored-by: Austin Wright <[email protected]> Co-authored-by: Lenvin Gonsalves <[email protected]> Co-authored-by: Antoine du Hamel <[email protected]> PR-URL: nodejs#34066 Refs: nodejs#27880 Reviewed-By: James M Snell <[email protected]>
This adds several HTTP tests testing for the behavior identified in #27880:
Connection: close
so shouldn't the server close the connection by this point?)ClientRequest#write
should be a chunked encoding.ClientRequest#end
should be a standard message, with an automatically computed Content-Length header.ClientRequest#end
should have no payload headers if there's no response bodyNaming for the test files will probably need to be reconsidered; suggestions welcome.
Refs: #27880
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes