cmux icon indicating copy to clipboard operation
cmux copied to clipboard

http2 matcher not working with net/http

Open lukeo3o1 opened this issue 3 years ago • 2 comments

Caused by https://github.com/golang/go/issues/55076

https://github.com/golang/go/blob/9861e8b2fd83dec24a6ced44998dca52abd6ccff/src/net/http/server.go#L1854

lukeo3o1 avatar Sep 29 '22 15:09 lukeo3o1

Hi @lukeo3o1 ! I have a Go server that currently uses gRPC internally on a different port than the publicly accessible HTTP port. I’m interested in exposing some gRPC services publicly through the same port and I’m considering using cmux for this, I don’t want to sacrifice HTTP/2 support.

I see you have a branch for this but it hasn’t been updated in a few months. What is the current status of this feature? If it’s workable / close to shipping I’d like to try it out. If not I’ll probably have to set up a separate subdomain for the gRPC APIs.

AttilaTheFun avatar Feb 22 '23 17:02 AttilaTheFun

Hi @AttilaTheFun

I am using this feature in production and it has been workable for me. However, I have occasionally encountered PROTOCOL_ERROR errors. Although these occurrences are rare, I recommend testing the feature thoroughly and using it at your own discretion.

lukeo3o1 avatar Feb 23 '23 06:02 lukeo3o1