twitchtv / twirp

A simple RPC framework with protobuf service definitions
https://twitchtv.github.io/twirp/docs/intro.html
Apache License 2.0
7.2k stars 326 forks source link

[Bug/Support] Running server/client on kubernetes cluster with containerd runtime #364

Closed 1003n40 closed 2 years ago

1003n40 commented 2 years ago

When running client/server side app in kubernetes cluster running on containerd runtime, the client request using twirp library returns response that was cut off, thus loosing data. This doesn't happen when running on dockerd runtime.

wmatveyenko commented 2 years ago

Twirp is a thin wrapper on the Go implementation of HTTP client and HTTP server. Your first step would be to make sure the Go HTTP code is working as you expect.

1003n40 commented 2 years ago

I think the problem possibly comes from containerd itself and its stdout pipes, which makes buffer overflow which makes loosing data I guess as the streams close.

wmatveyenko commented 2 years ago

Great. I will close this issue