From dc5f7190f16cf4552db74fba3f4e0f2d654e2594 Mon Sep 17 00:00:00 2001 From: Sverker Eriksson Date: Mon, 28 Nov 2011 15:14:14 +0100 Subject: erts: Remove truncation of http packet parsing and return error instead This is a slight modification of previous commit by Steve Vinoski For backward compatibility of old users of decode_packet, I think it's enough to return error instead of keeping the old line truncation behaviour. --- lib/kernel/doc/src/inet.xml | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/kernel/doc') diff --git a/lib/kernel/doc/src/inet.xml b/lib/kernel/doc/src/inet.xml index fad5af85bb..1a05b4ba99 100644 --- a/lib/kernel/doc/src/inet.xml +++ b/lib/kernel/doc/src/inet.xml @@ -573,6 +573,10 @@ fe80::204:acff:fe17:bf38 is longer than the max allowed length, the packet is considered invalid. The same happens if the packet header is too big for the socket receive buffer.

+

For line oriented protocols (line,http*), + option packet_size also guarantees that lines up to the + indicated length are accepted and not considered invalid due + to internal buffer limitations.

{read_packets, Integer}(UDP sockets) -- cgit v1.2.3