JuliaComputing / gRPCClient.jl

A Julia gRPC Client
Other
48 stars 3 forks source link

add message size limit checks #6

Closed tanmaykm closed 3 years ago

tanmaykm commented 3 years ago

gRPCController now has additional parameters to limit both send and receive message sizes, the default being 4MB. A gRPCMessageTooLargeException is thrown if that is exceeded.

gRPCException is now an abstact type with gRPCMessageTooLargeException and gRPCServiceCallException as the two concrete implementations.

codecov-io commented 3 years ago

Codecov Report

Merging #6 (49242ab) into main (d28400d) will increase coverage by 0.89%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main       #6      +/-   ##
==========================================
+ Coverage   95.78%   96.68%   +0.89%     
==========================================
  Files           4        5       +1     
  Lines         190      241      +51     
==========================================
+ Hits          182      233      +51     
  Misses          8        8              
Impacted Files Coverage Δ
src/gRPCClient.jl 100.00% <ø> (ø)
src/curl.jl 96.19% <100.00%> (+1.25%) :arrow_up:
src/grpc.jl 100.00% <100.00%> (ø)
src/limitio.jl 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update d28400d...49242ab. Read the comment docs.