mirror of
https://github.com/soheilhy/cmux.git
synced 2026-08-10 17:16:18 +08:00
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
4.8 KiB
4.8 KiB