Skip to content
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

http/internal: document final CRLF behavior on chunkedWriter #26410

Closed
wants to merge 1 commit into from

Conversation

edaniels
Copy link
Contributor

@edaniels edaniels commented Jul 16, 2018

Change-Id: I0f76b40dbfda2d382c88aec377db1851c4ac7441

@googlebot googlebot added the cla: yes Used by googlebot to label PRs as having a valid CLA. The text of this label should not change. label Jul 16, 2018
@gopherbot
Copy link

Message from Gerrit User 12446:

Uploaded patch set 2: Commit message was updated.


Please don’t reply on this GitHub thread. Visit golang.org/cl/124255.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link

Message from Gerrit User 12446:

Uploaded patch set 3: New patch set was added with same tree, parent, and commit message as Patch Set 2.


Please don’t reply on this GitHub thread. Visit golang.org/cl/124255.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link

Message from Gerrit User 5065:

Patch Set 3: Code-Review-2

I don't think this is correct. We intentionally don't send the double CRLF because that's where trailers go, and Go fully supports HTTP trailers.

Can you file a bug with the problem before sending a fix? I don't know what you're actually having a problem with that led you to send this.


Please don’t reply on this GitHub thread. Visit golang.org/cl/124255.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link

Message from Gerrit User 25196:

Patch Set 3:

Oh I see why you think it's incorrect. transferWriter uses chunkedWriter and writes its own final CRLF. httputil exposes NewChunkedWriter though but does not send the final CRLF. Is this just a documentation issue instead?


Please don’t reply on this GitHub thread. Visit golang.org/cl/124255.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link

Message from Gerrit User 5065:

Patch Set 3:

Patch Set 3:

Oh I see why you think it's incorrect. transferWriter uses chunkedWriter and writes its own final CRLF. httputil exposes NewChunkedWriter though but does not send the final CRLF. Is this just a documentation issue instead?

Again, that's a solution, but now I can guess your problem.

Yes, httputil.NewChunkWriter writes "chunk" and "last-chunk" (in the grammar of the RFC), not Chunk-Body. Want to send a documentation change instead?


Please don’t reply on this GitHub thread. Visit golang.org/cl/124255.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link

Message from Gerrit User 25196:

Patch Set 3:

Patch Set 3:

Patch Set 3:

Oh I see why you think it's incorrect. transferWriter uses chunkedWriter and writes its own final CRLF. httputil exposes NewChunkedWriter though but does not send the final CRLF. Is this just a documentation issue instead?

Again, that's a solution, but now I can guess your problem.

Yes, httputil.NewChunkWriter writes "chunk" and "last-chunk" (in the grammar of the RFC), not Chunk-Body. Want to send a documentation change instead?

Sure. I'll amend.


Please don’t reply on this GitHub thread. Visit golang.org/cl/124255.
After addressing review feedback, remember to publish your drafts!

Change-Id: I0f76b40dbfda2d382c88aec377db1851c4ac7441
@gopherbot
Copy link

Message from Gerrit User 12446:

Uploaded patch set 5: New patch set was added with same tree, parent, and commit message as Patch Set 4.


Please don’t reply on this GitHub thread. Visit golang.org/cl/124255.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link

Message from Gerrit User 25196:

Patch Set 6: Commit message was updated.


Please don’t reply on this GitHub thread. Visit golang.org/cl/124255.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link

Message from Gerrit User 12446:

Uploaded patch set 7: Commit message was updated.


Please don’t reply on this GitHub thread. Visit golang.org/cl/124255.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link

Message from Gerrit User 12446:

Uploaded patch set 8: New patch set was added with same tree, parent, and commit message as Patch Set 7.


Please don’t reply on this GitHub thread. Visit golang.org/cl/124255.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link

Message from Gerrit User 25196:

Patch Set 8:

The bot is being wonky with me updating the CR title / details.


Please don’t reply on this GitHub thread. Visit golang.org/cl/124255.
After addressing review feedback, remember to publish your drafts!

@edaniels edaniels changed the title http/internal: correctly send CRLF after last-chunk on chunkedWriter http/internal: document final CRLF behavior on chunkedWriter Jul 17, 2018
@gopherbot
Copy link

Message from Gerrit User 12446:

Uploaded patch set 9: Commit message was updated.


Please don’t reply on this GitHub thread. Visit golang.org/cl/124255.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link

Message from Gerrit User 12446:

Uploaded patch set 10: New patch set was added with same tree, parent, and commit message as Patch Set 9.


Please don’t reply on this GitHub thread. Visit golang.org/cl/124255.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link

Message from Gerrit User 25196:

Patch Set 10:

There we go. Ready for another look Brad.


Please don’t reply on this GitHub thread. Visit golang.org/cl/124255.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link

Message from Gerrit User 5065:

Patch Set 10: Code-Review+2


Please don’t reply on this GitHub thread. Visit golang.org/cl/124255.
After addressing review feedback, remember to publish your drafts!

gopherbot pushed a commit that referenced this pull request Jul 17, 2018
Change-Id: I0f76b40dbfda2d382c88aec377db1851c4ac7441

Change-Id: I0f76b40dbfda2d382c88aec377db1851c4ac7441
GitHub-Last-Rev: ab42559
GitHub-Pull-Request: #26410
Reviewed-on: https://go-review.googlesource.com/124255
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
@gopherbot
Copy link

This PR is being closed because golang.org/cl/124255 has been merged.

@gopherbot gopherbot closed this Jul 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Used by googlebot to label PRs as having a valid CLA. The text of this label should not change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants