mirror of
https://github.com/soheilhy/cmux.git
synced 2026-08-31 07:44:30 +08:00
Compare commits
1 Commits
master
...
dev/settin
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e496b358da |
@@ -240,6 +240,11 @@ func matchHTTP2Field(w io.Writer, r io.Reader, name string, matches func(string)
|
||||
|
||||
switch f := f.(type) {
|
||||
case *http2.SettingsFrame:
|
||||
// Sender acknoweldged the SETTINGS frame. No need to write
|
||||
// SETTINGS again.
|
||||
if f.IsAck() {
|
||||
break
|
||||
}
|
||||
if err := framer.WriteSettings(); err != nil {
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user