diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2021-03-04 18:32:56 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2021-03-04 20:45:00 +0000 |
commit | 55d60f3c1201a4eb80f82da9d2abcf503a7de3f0 (patch) | |
tree | 4ab2b8dd7a231981cb77460d64d0f31662825998 /src/mm-base-sms.h | |
parent | 5d176a1e61df603b74434dce9050f7a9d3139f13 (diff) |
sms: common timeout of 180s for the send operation
On low signal quality conditions, the process of sending the SMS to
the network may take a really long time, way more than the 30s used as
default in some implementations.
We now define a common timeout value of 180s for this operation in all
protocols.
Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/328
Diffstat (limited to 'src/mm-base-sms.h')
-rw-r--r-- | src/mm-base-sms.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mm-base-sms.h b/src/mm-base-sms.h index b771b90b..e022ec3f 100644 --- a/src/mm-base-sms.h +++ b/src/mm-base-sms.h @@ -27,6 +27,14 @@ #include "mm-sms-part.h" #include "mm-base-modem.h" +/*****************************************************************************/ + +/* Default timeout value to be used when sending a SMS, long enough so that the + * operation succeeds or fails under low signal conditions. */ +#define MM_BASE_SMS_DEFAULT_SEND_TIMEOUT 180 + +/*****************************************************************************/ + #define MM_TYPE_BASE_SMS (mm_base_sms_get_type ()) #define MM_BASE_SMS(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), MM_TYPE_BASE_SMS, MMBaseSms)) #define MM_BASE_SMS_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MM_TYPE_BASE_SMS, MMBaseSmsClass)) |