Skip to content

Commit 3d234e7

Browse files
committed
feat: double ringing time to 120 seconds
the ringing of 60 seconds is indeed a bit short, esp. when messages are already delayed. but also if everythings is fast and working, 60 seconds are short. the 60 seconds also come from the first implementation, where we did not had a "reject" message from callee to caller, so that caller should not wait unnecessarily. this has changed, however, the other constraints are still valid - phone may get offline, and we should not ring for stale calls. sure, that can be fixed also differently, but for the current implementation, the 120 seconds seem to be a good compromise.
1 parent 595258a commit 3d234e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/calls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ use tokio::time::sleep;
3333
///
3434
/// For the caller, this means they should also not wait longer,
3535
/// as the callee won't start the call afterwards.
36-
const RINGING_SECONDS: i64 = 60;
36+
const RINGING_SECONDS: i64 = 120;
3737

3838
// For persisting parameters in the call, we use Param::Arg*
3939

0 commit comments

Comments
 (0)