• Brad Fitzpatrick's avatar
    http2: fix over-aggressive ignoring of frames while in "go away" mode · 569280fa
    Brad Fitzpatrick authored
    https://golang.org/cl/31727 made many of the Server Frame processors
    ignore incoming frames if the connection was in shutdown mode.
    
    The idea was that it's pointless to do work if we're about to hang up
    on them in 250ms anyway for violating a protocol error.
    
    But as of https://golang.org/cl/32412 (graceful shutdown) we can also
    be in "go away" mode for ErrCodeNo, which just means to nicely tell
    them to GOAWAY and because they did nothing wrong, we don't hang up in
    250ms (the value of which gave the peer time to read the error before
    the TCP close), but instead we keep the conn open until it's idle.
    
    The combination of the two CLs made TestTransportAndServerSharedBodyRace_h2
    flaky, since it was never seeing RST_STREAM on cancelation of requests,
    and then Handlers would block forever.
    
    Updates golang/go#17733 (fixes after bundle into std)
    
    Change-Id: I67491c1d7124bc3cb554f9246ea7683f20b6a4e3
    Reviewed-on: https://go-review.googlesource.com/32583
    Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarDavid Crawshaw <crawshaw@golang.org>
    569280fa
Name
Last commit
Last update
bpf Loading commit data...
context Loading commit data...
dict Loading commit data...
html 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...
lex/httplex Loading commit data...
lif 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 Loading commit data...
codereview.cfg Loading commit data...