containerd / ttrpc

GRPC for low-memory environments
Apache License 2.0
558 stars 80 forks source link

Support socket control messages for rpc calls #74

Open cpuguy83 opened 3 years ago

cpuguy83 commented 3 years ago

I'd like to be able to have rpc's that can pass file descriptors over transports which support it.

Today there is some support for an interceptor with a custom handshaker to pass along unix rights messages on connection initiation. The method of passing file descriptors is similar (same mechanism, different message).

The difference here is it would need to be supported per request instead of at connection time (I think), so I'm not sure we'd have access to a handshaker.

cpuguy83 commented 3 years ago

Draft implementation: https://github.com/containerd/ttrpc/pull/75