aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objective-c/GRPCClient/GRPCCall+ChannelArg.m
diff options
context:
space:
mode:
authorGravatar Muxi Yan <muxi@users.noreply.github.com>2019-01-07 09:50:21 -0800
committerGravatar GitHub <noreply@github.com>2019-01-07 09:50:21 -0800
commit36b47ce0de60754cf14258e15d25dd2d1bb5abe0 (patch)
tree891087733e8609cc0594559dbd17d8b4b9b5b1e9 /src/objective-c/GRPCClient/GRPCCall+ChannelArg.m
parent46bd2f7adb926053345665d5c487fa20acd2b5b0 (diff)
parentb4a926961abc9e29016b2ba30093f3925de10514 (diff)
Merge pull request #16190 from muxi/config-isolation
Implement L38: gRPC Objective-C API Upgrade
Diffstat (limited to 'src/objective-c/GRPCClient/GRPCCall+ChannelArg.m')
-rw-r--r--src/objective-c/GRPCClient/GRPCCall+ChannelArg.m5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/objective-c/GRPCClient/GRPCCall+ChannelArg.m b/src/objective-c/GRPCClient/GRPCCall+ChannelArg.m
index 0e631fb3ad..ae60d6208e 100644
--- a/src/objective-c/GRPCClient/GRPCCall+ChannelArg.m
+++ b/src/objective-c/GRPCClient/GRPCCall+ChannelArg.m
@@ -18,6 +18,7 @@
#import "GRPCCall+ChannelArg.h"
+#import "private/GRPCChannelPool.h"
#import "private/GRPCHost.h"
#import <grpc/impl/codegen/compression_types.h>
@@ -31,11 +32,11 @@
+ (void)setResponseSizeLimit:(NSUInteger)limit forHost:(nonnull NSString *)host {
GRPCHost *hostConfig = [GRPCHost hostWithAddress:host];
- hostConfig.responseSizeLimitOverride = @(limit);
+ hostConfig.responseSizeLimitOverride = limit;
}
+ (void)closeOpenConnections {
- [GRPCHost flushChannelCache];
+ [[GRPCChannelPool sharedInstance] disconnectAllChannels];
}
+ (void)setDefaultCompressMethod:(GRPCCompressAlgorithm)algorithm forhost:(nonnull NSString *)host {