File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
core/src/main/scala/com/avast/grpc/jsonbridge Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,10 @@ private[jsonbridge] class ReflectionGrpcJsonBridge(serviceHandlers: ServiceHandl
67
67
implicit F : Sync [F ]): Resource [F , Server ] =
68
68
Resource {
69
69
F .delay {
70
- val b = InProcessServerBuilder .forName(inProcessServiceName).executor(ec.execute(_))
70
+ val b = InProcessServerBuilder
71
+ .forName(inProcessServiceName)
72
+ .maxInboundMessageSize(Int .MaxValue )
73
+ .executor(ec.execute(_))
71
74
services.foreach(b.addService)
72
75
val s = b.build().start()
73
76
(s, F .delay { s.shutdown().awaitTermination() })
@@ -78,7 +81,11 @@ private[jsonbridge] class ReflectionGrpcJsonBridge(serviceHandlers: ServiceHandl
78
81
implicit F : Sync [F ]): Resource [F , ManagedChannel ] =
79
82
Resource [F , ManagedChannel ] {
80
83
F .delay {
81
- val c = InProcessChannelBuilder .forName(inProcessServiceName).executor(ec.execute(_)).build()
84
+ val c = InProcessChannelBuilder
85
+ .forName(inProcessServiceName)
86
+ .maxInboundMessageSize(Int .MaxValue )
87
+ .executor(ec.execute(_))
88
+ .build()
82
89
(c, F .delay { val _ = c.shutdown() })
83
90
}
84
91
}
You can’t perform that action at this time.
0 commit comments