Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
liblinphone
Commits
c8a90011
Commit
c8a90011
authored
Dec 09, 2019
by
François Grisez
Browse files
Fix random failure of 'Flexisip/DoS module trigger by sending a lot of chat messages' test
(cherry picked from commit
b8f35cbb
)
parent
839b3a54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
tester/flexisip_tester.c
tester/flexisip_tester.c
+7
-0
No files found.
tester/flexisip_tester.c
View file @
c8a90011
...
...
@@ -1076,6 +1076,13 @@ static void dos_module_trigger(void) {
BC_ASSERT_LOWER_STRICT
(
marie
->
stat
.
number_of_LinphoneMessageReceived
,
message_sent_index
-
message_rate
,
int
,
"%d"
);
wait_for_until
(
marie
->
lc
,
pauline
->
lc
,
&
dummy
,
1
,
65000
);
// Wait several seconds to ensure we are not banned anymore
/*
We need to wait that all messages are received here to have the TCP session ready to send data. Indeed, as the
destination was unreachable for a time, all not-sent messages have been queued locally waiting for retransmission.
No data can be send until all retransmissions succeeds.
*/
BC_ASSERT
(
wait_for
(
marie
->
lc
,
pauline
->
lc
,
&
marie
->
stat
.
number_of_LinphoneMessageReceived
,
message_sent_index
));
reset_counters
(
&
marie
->
stat
);
reset_counters
(
&
pauline
->
stat
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment