maxMessageSize applies to both uncompressed and compressed sizes. This <https://github.com/grpc/grpc-java/blob/v1.0.1/core/src/main/java/io/grpc/internal/MessageDeframer.java#L335> is the check that applies to the on-the-wire size, independent of whether the message is compressed.
It seems you are aware it only applies to incoming messages, so I'm not sure why you wouldn't be experiencing it working. What version of grpc-java are you using? On Wed, Sep 28, 2016 at 3:27 AM, <lpth...@gmail.com> wrote: > I am looking for a way to enforce a limit on the size of the incoming > requests (uncompressed). I have tried setting maxMessageSize on > NettyServerBuilder, but it did not seem to work. After some debugging and > searching, I found that this limit is only enforced in MessageDeframer, and > only for compressed stream (from this commit: > https://github.com/grpc/grpc-java/commit/15f02ba19c4a2c21afee39cb73cd03 > 40ad2f9d1d). Does anyone know a way to set this for uncompressed requests? > > -- > You received this message because you are subscribed to the Google Groups " > grpc.io" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to grpc-io+unsubscr...@googlegroups.com. > To post to this group, send email to grpc-io@googlegroups.com. > Visit this group at https://groups.google.com/group/grpc-io. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/grpc-io/7d6dc331-44dc-4cd5-b16f-1a7bdd42fd7a%40googlegroups.com > <https://groups.google.com/d/msgid/grpc-io/7d6dc331-44dc-4cd5-b16f-1a7bdd42fd7a%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscr...@googlegroups.com. To post to this group, send email to grpc-io@googlegroups.com. Visit this group at https://groups.google.com/group/grpc-io. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/CA%2B4M1oMwYNj0_nYrR0T8xK8W%2BVP%2BRvM8w8RUpAH9AqrJJw7%2BNQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.