aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2011-11-28 15:14:14 +0100
committerSverker Eriksson <[email protected]>2011-12-06 11:06:44 +0100
commitdc5f7190f16cf4552db74fba3f4e0f2d654e2594 (patch)
tree6f9b947d7e4bf228cfe40e22dac45add6f9bd6ff /erts/emulator/test
parent5984409d1264871cbe61bfec875de53e51713efb (diff)
downloadotp-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 'erts/emulator/test')
-rw-r--r--erts/emulator/test/decode_packet_SUITE.erl6
1 files changed, 2 insertions, 4 deletions
diff --git a/erts/emulator/test/decode_packet_SUITE.erl b/erts/emulator/test/decode_packet_SUITE.erl
index 55ef05079f..4acbe8c6e0 100644
--- a/erts/emulator/test/decode_packet_SUITE.erl
+++ b/erts/emulator/test/decode_packet_SUITE.erl
@@ -596,11 +596,9 @@ otp_9389(Config) when is_list(Config) ->
{more, undefined} = erlang:decode_packet(httph, Rest2, Opts),
{ok, {http_header,_,"Link",_,Link}, Rest3} =
erlang:decode_packet(httph, list_to_binary([Rest2, Pkt2]), Opts),
- true = (length(Link) =< 3000),
- {ok, {http_error, _}, Rest4} = erlang:decode_packet(httph, Rest3, Opts),
- {ok, {http_error, _}, Rest5} = erlang:decode_packet(httph, Rest4, Opts),
+ true = (length(Link) > 8000),
{ok, {http_header,_,'Content-Length',_,"0"}, <<"\r\n">>} =
- erlang:decode_packet(httph, Rest5, Opts),
+ erlang:decode_packet(httph, Rest3, Opts),
ok.
otp_9389_line(doc) -> ["Verify packet_size works correctly for line mode"];