Update cmux to 0.1.4
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
parent
e38e1e4473
commit
2b0320ec08
3 changed files with 8 additions and 2 deletions
3
vendor/github.com/soheilhy/cmux/cmux.go
generated
vendored
3
vendor/github.com/soheilhy/cmux/cmux.go
generated
vendored
|
@ -116,8 +116,9 @@ type cMux struct {
|
|||
func matchersToMatchWriters(matchers []Matcher) []MatchWriter {
|
||||
mws := make([]MatchWriter, 0, len(matchers))
|
||||
for _, m := range matchers {
|
||||
cm := m
|
||||
mws = append(mws, func(w io.Writer, r io.Reader) bool {
|
||||
return m(r)
|
||||
return cm(r)
|
||||
})
|
||||
}
|
||||
return mws
|
||||
|
|
5
vendor/github.com/soheilhy/cmux/matchers.go
generated
vendored
5
vendor/github.com/soheilhy/cmux/matchers.go
generated
vendored
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue