grpc / grpc-ios

gRPC for iOS
Apache License 2.0
37 stars 22 forks source link

Setting responseSizeLimit not working #168

Open Janneman84 opened 1 year ago

Janneman84 commented 1 year ago

The default message size is capped at 4MB but I need to be able to download files up to 15MB big.

There are two ways to increase this limit but neither of them seem to work. When initing a service you can pass callOptions. I tried passing this:

GRPCMutableCallOptions *options = [[GRPCMutableCallOptions alloc]init];
options.additionalChannelArgs = @{@"grpc.max_receive_message_length" : @15728640};
options.responseSizeLimit = 15728640;

However I still can't download anything over 4MB. However what does work is manually changing GRPC_DEFAULT_MAX_RECV_MESSAGE_LENGTH in grpc_types.h, but that's not a durable solution.

I'm not sure if this is the right place for this issue. I'm on 1.49.0.

Bakuku commented 1 year ago

@Janneman84

this has nothing to do with the issue, but I was wondering how you added the LED rings on the buttons for your Gamecube?

Janneman84 commented 1 year ago

@Janneman84

this has nothing to do with the issue, but I was wondering how you added the LED rings on the buttons for your Gamecube?

I drilled some holes and glued in 4 3mm LEDs in each button socked laying flat. I sanded the LEDs for better light spread. I also sanded down the bottom rim of the buttons to prevent light blockage.