Skip to content

Instantly share code, notes, and snippets.

@fpaupier
Created August 8, 2021 10:19
Show Gist options
  • Save fpaupier/cf7b9ee2583bc61bc0ef75a912500558 to your computer and use it in GitHub Desktop.
Save fpaupier/cf7b9ee2583bc61bc0ef75a912500558 to your computer and use it in GitHub Desktop.
A Non working gRPC server initialization
import grpc
from concurrent import futures
server = grpc.server(
futures.ProcessPoolExecutor(max_workers=5), # ← HERE: Would be ideal but does not work.
options=[ # See https://github.com/grpc/grpc/issues/14436
("grpc.max_send_message_length", -1),
("grpc.max_receive_message_length", -1),
]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment