vmagamedov / grpclib

Pure-Python gRPC implementation for asyncio
http://grpclib.readthedocs.io
BSD 3-Clause "New" or "Revised" License
936 stars 92 forks source link

Add `max_send_message_length` and `max_receive_message_length` in server options Configuration #195

Open hexbabe opened 3 months ago

hexbabe commented 3 months ago

Hi! It would unblock me if you could add max_send_message_length and max_receive_message_length in the server Configuration options. Thank you so much

server = grpc.server(futures.ThreadPoolExecutor(max_workers=10), options=[
    ('grpc.max_send_message_length', 1 << 25),                  # 32 MB max send message size
    ('grpc.max_receive_message_length', 1 << 25),               # 32 MB max receive message size
]) 

# I want to be able to do the equivalent of this
vmagamedov commented 3 months ago

Hey, unfortunately this is not a simple task and currently I don't have bandwidth to implement new features.