2
0
mirror of https://github.com/soheilhy/cmux.git synced 2026-08-10 17:16:18 +08:00
Files
cmux/matchers.go
Soheil Hassas Yeganeh c0f3570a02 Eliminate blocking reads in the HTTP2 matcher.
The HTTP2 matcher uses io.ReadFull to read the client preface.
If the client sends a string shorter than the preface (e.g.,
SSL version) io.ReadFull will block.

Replace io.ReadFull with Read and assume partial reads will not
match

Fixes #44
2017-04-23 00:08:19 -04:00

4.8 KiB