Increase socket buffer size in gRPC C++

729 views
Skip to first unread message

Vivek M

unread,
Mar 12, 2017, 4:06:23 PM3/12/17
to grpc.io
Hi,

I am using C++ synchronous streaming server and hence basically need a fatter pipe for streaming large sized data (max ~250 KB payload) to avoid blocking write. I would like to know how do I increase send socket buffer size of an accepted connection.

Any pointers would help.

Thanks,
Vivek

Vivek M

unread,
Mar 14, 2017, 4:59:56 AM3/14/17
to grpc.io
Hi,

Any takers? I am looking for an API to do this. And also how will it affect flow control between the gRPC endpoints.

Thanks,
Vivek

ncte...@google.com

unread,
Mar 14, 2017, 7:05:10 PM3/14/17
to grpc.io
Take a look at grpc_types.h, I think the channel arguments GRPC_ARG_MAX_RECEIVE_MESSAGE_LENGTH and GRPC_ARG_MAX_SEND_MESSAGE_LENGTH should help you out. 
Reply all
Reply to author
Forward
0 new messages