facebook / mvfst

An implementation of the QUIC transport protocol.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

where is the zero downtime api?

huowa222 opened this issue · comments

where is the zero downtime api?

Can you be more specific about what you are looking for? Do you mean how to establish QUIC connections in 0-RTT?

I'm looking for zero downtime API which is illustrated in README. keep old server working when trigger reload i mean.

Aha, this one:

APIs to enable zero-downtime restarts of servers, so that applications do not have to drop connections when restarting.

The APIs are here:

https://github.com/facebookincubator/mvfst/blob/main/quic/server/QuicServer.h#L257-L312

Though I admit, an example of how to use these APIs is lacking. I'll see if I can update this with an example of how to execute a socket takeover. The general idea is that the socket FD gets passed from the old server process to the new one, and any packets received in the new process which belong to connections in the old process are forwarded there.

domain sockets for muti-processes communication.