Skip to content
Snippets Groups Projects
Commit c5616da6 authored by Georges Racinet's avatar Georges Racinet
Browse files

server: multiprocessing (TCP only)

See #2

This works for TCP sockets only and is essentially adapted
from the standard multiprocessing example in the `grpc`
package: pre-binding with `SO_REUSEPORT` and not
starting the servers before forking.

We're adding some logic to keep Unix Domain Socket
mono-processed, because we can't support them in the
same way (SO_REUSEPORT and associated kernel balancing
is for IP sockets only).

It looks like Unix Domain Socket support would be quite
different, and probably would involve cooperation with
upstream grpc code for server bind.
parent 8dc60180
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment