mirror of
https://github.com/soheilhy/cmux.git
synced 2024-11-09 19:21:52 +08:00
Merge pull request #2 from tamird/update-readme-reasons
README: clarify why TLS is limited
This commit is contained in:
commit
44439c27f0
@ -57,8 +57,9 @@ is negligible.
|
||||
*TODO(soheil)*: Add benchmarks.
|
||||
|
||||
## Limitations
|
||||
* *TLS*: Since `cmux` sits in between the actual listener and the mux'ed
|
||||
listeners, TLS handshake is not handled inside the actual servers.
|
||||
* *TLS*: `net/http` uses a type assertion to identify TLS connections; since
|
||||
cmux's lookahead-implementing connection wraps the underlying TLS connection,
|
||||
this type assertion fails.
|
||||
Because of that, you can serve HTTPS using cmux but `http.Request.TLS`
|
||||
would not be set in your handlers.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user