mirror of
https://github.com/soheilhy/cmux.git
synced 2024-11-11 04:01:53 +08:00
Do not write SETTINGS in response to ACKs.
Reported-by talgendler in Issue #42
This commit is contained in:
parent
444ce56efe
commit
e09e9389d8
@ -240,6 +240,11 @@ func matchHTTP2Field(w io.Writer, r io.Reader, name string, matches func(string)
|
|||||||
|
|
||||||
switch f := f.(type) {
|
switch f := f.(type) {
|
||||||
case *http2.SettingsFrame:
|
case *http2.SettingsFrame:
|
||||||
|
// Sender acknoweldged the SETTINGS frame. No need to write
|
||||||
|
// SETTINGS again.
|
||||||
|
if f.IsAck() {
|
||||||
|
break
|
||||||
|
}
|
||||||
if err := framer.WriteSettings(); err != nil {
|
if err := framer.WriteSettings(); err != nil {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user