From 4dcfdd65318b706e139658842c9f406e906a8003 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Wed, 17 Jul 2019 20:33:52 -0700 Subject: fixes #954 large message fails with no error message This removes the default 1MB limit on maximum receive sizes. Applications intended for deployment in insecure or hostile environments should choose a sensible default for NNG_OPT_RECVMAXSZ. --- docs/man/nng_options.5.adoc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'docs/man') diff --git a/docs/man/nng_options.5.adoc b/docs/man/nng_options.5.adoc index 449eea4d..278055c5 100644 --- a/docs/man/nng_options.5.adoc +++ b/docs/man/nng_options.5.adoc @@ -190,6 +190,9 @@ large message, without sending any data. This option can be set for the socket, but may be overridden for on a per-dialer or per-listener basis. + +IMPORTANT: Applications on hostile networks should set this to a non-zero +value to prevent denial-of-service attacks. ++ NOTE: Some transports may have further message size restrictions. [[NNG_OPT_RECVTIMEO]] -- cgit v1.2.3-70-g09d2