3 ms·
Caddy is capable of handling bidirectional gRPC streams! I have just tested it, and it works just fine. Caddy will immediately flush writes when upstream is `h2
by m_sahaf 4y ago
Caddy is capable of handling bidirectional gRPC streams! I have just tested it, and it works just fine. Caddy will immediately flush writes when upstream is `h2` or `h2c`[0] instead of having to wait until reading from socket is complete
I used this Caddyfile to proxy to the route_guide example (https://github.com/grpc/grpc-go/tree/master/examples/route_guide https://github.com/grpc/grpc-go/tree/master/examples/route_g...):
```
localhost {
reverse_proxy h2c://localhost:50051
}
```
It works like a charm.
[0] https://github.com/caddyserver/caddy/blob/e4ce40f8ff0424054045de2461fc7228c66f3c61/modules/caddyhttp/reverseproxy/streaming.go#L125-L127 https://github.com/caddyserver/caddy/blob/e4ce40f8ff04240540...