diff options
author | Sverker Eriksson <[email protected]> | 2011-11-28 15:14:14 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2011-12-06 11:06:44 +0100 |
commit | dc5f7190f16cf4552db74fba3f4e0f2d654e2594 (patch) | |
tree | 6f9b947d7e4bf228cfe40e22dac45add6f9bd6ff /lib/kernel/doc/src/inet.xml | |
parent | 5984409d1264871cbe61bfec875de53e51713efb (diff) | |
download | otp-dc5f7190f16cf4552db74fba3f4e0f2d654e2594.tar.gz otp-dc5f7190f16cf4552db74fba3f4e0f2d654e2594.tar.bz2 otp-dc5f7190f16cf4552db74fba3f4e0f2d654e2594.zip |
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.
Diffstat (limited to 'lib/kernel/doc/src/inet.xml')
-rw-r--r-- | lib/kernel/doc/src/inet.xml | 4 |
1 files changed, 4 insertions, 0 deletions
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.</p> + <p>For line oriented protocols (<c>line</c>,<c>http*</c>), + option <c>packet_size</c> also guarantees that lines up to the + indicated length are accepted and not considered invalid due + to internal buffer limitations.</p> </item> <tag><c>{read_packets, Integer}</c>(UDP sockets)</tag> <item> |