From 3d166efe4f3ee6a93edf361a9d72633a00fb486f Mon Sep 17 00:00:00 2001 From: Micael Karlberg Date: Tue, 29 Jan 2019 12:41:19 +0100 Subject: [socket-nif] The otp rcvbuf option updated Its now possible to set a rcvbuf (otp) option value of {N :: pos_integer(), BufSz :: pos_integer()}. This value is used for type stream and protocol tcp, when calling the function recv with length = 0 (zero). The second value, BufSz, is the actual size of the receive buffer used when calling the socket recv function, and the first value, N, is the max number of possible reads that will be performed (at most), even if there is more data to read. This is limit the effect of DoS attacks. OTP-15497 --- erts/doc/src/socket_usage.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'erts/doc/src') diff --git a/erts/doc/src/socket_usage.xml b/erts/doc/src/socket_usage.xml index 401a70992f..756f0dbd44 100644 --- a/erts/doc/src/socket_usage.xml +++ b/erts/doc/src/socket_usage.xml @@ -83,10 +83,11 @@ rcvbuf - default | pos_integer() + default | pos_integer() | {pos_integer(), pos_ineteger()} yes yes - default only valid for set + 'default' only valid for set. + The tuple form is only valid for type 'stream' and protocol 'tcp'. rcvctrlbuf -- cgit v1.2.3