aboutsummaryrefslogtreecommitdiffstats
path: root/lib/diameter/test/diameter_gen_sctp_SUITE.erl
diff options
context:
space:
mode:
authorAnders Svensson <[email protected]>2012-08-29 12:03:37 +0200
committerAnders Svensson <[email protected]>2012-08-29 12:03:37 +0200
commite931991f305a27af5d99478e35b3b29b24ca3b48 (patch)
treeb3e830568b8cf0fc98492318e4f5cc6aab3abc9e /lib/diameter/test/diameter_gen_sctp_SUITE.erl
parent5334dab8e5491fa8fc710e4d83cdc744055446cf (diff)
downloadotp-e931991f305a27af5d99478e35b3b29b24ca3b48.tar.gz
otp-e931991f305a27af5d99478e35b3b29b24ca3b48.tar.bz2
otp-e931991f305a27af5d99478e35b3b29b24ca3b48.zip
Learn to keep time in diameter_gen_sctp_SUITE
Microseconds /= milliseconds.
Diffstat (limited to 'lib/diameter/test/diameter_gen_sctp_SUITE.erl')
-rw-r--r--lib/diameter/test/diameter_gen_sctp_SUITE.erl10
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/diameter/test/diameter_gen_sctp_SUITE.erl b/lib/diameter/test/diameter_gen_sctp_SUITE.erl
index 7f435a6b7a..acc3b9e254 100644
--- a/lib/diameter/test/diameter_gen_sctp_SUITE.erl
+++ b/lib/diameter/test/diameter_gen_sctp_SUITE.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2010-2011. All Rights Reserved.
+%% Copyright Ericsson AB 2010-2012. All Rights Reserved.
%%
%% The contents of this file are subject to the Erlang Public License,
%% Version 1.1, (the "License"); you may not use this file except in
@@ -175,7 +175,8 @@ send(Sock, Id) ->
send_from_multiple_clients(_) ->
{S, Rs} = T = send_from_multiple_clients(8, 1024),
- {false, [], _} = {?FOREVER < S,
+ Max = ?FOREVER*1000,
+ {false, [], _} = {Max < S,
Rs -- [OI || {O,_} = OI <- Rs, is_integer(O)],
T}.
@@ -223,6 +224,11 @@ send_from_multiple_clients(_) ->
%% {134,100},
%% {117,98},
%% {149,125}]}
+%%
+%% This turns out to have been due to SCTP resends as a consequence of
+%% the listener having an insufficient recbuf. Increasing the size
+%% solves the problem.
+%%
send_from_multiple_clients(N, Sz)
when is_integer(N), 0 < N, is_integer(Sz), 0 < Sz ->