• Brad Fitzpatrick's avatar
    http2: use GetBody unconditionally on Transport retry, when available · cffdcf67
    Brad Fitzpatrick authored
    We were previously only using the new-ish Request.GetBody to "rewind"
    a Request.Body on retry when it seemed that we hadn't started the
    read+write body copy process from the old request yet.
    
    Apparently there's a bug somewhere, so this is a safe minimal fix for
    now, unconditionally using GetBody when it's available, rather than
    only using it when it seems we need to. Should have no performance impact
    because it's supposed to be cheap, and this only happens on rare retries
    where the server's GOAWAY came in-flight while we were writing a request.
    
    Updates golang/go#25009 (not a fix, but enough for Go 1.11)
    
    Change-Id: Ia462944d4a68cf2fde8d32b7b357b450c509a349
    Reviewed-on: https://go-review.googlesource.com/123476Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    cffdcf67
Name
Last commit
Last update
bpf Loading commit data...
context Loading commit data...
dict Loading commit data...
dns/dnsmessage Loading commit data...
html Loading commit data...
http Loading commit data...
http2 Loading commit data...
icmp Loading commit data...
idna Loading commit data...
internal Loading commit data...
ipv4 Loading commit data...
ipv6 Loading commit data...
lif Loading commit data...
nettest Loading commit data...
netutil Loading commit data...
proxy Loading commit data...
publicsuffix Loading commit data...
route Loading commit data...
trace Loading commit data...
webdav Loading commit data...
websocket Loading commit data...
xsrftoken Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
codereview.cfg Loading commit data...