summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoît Monin <benoit.monin@gmx.fr>2021-09-23 11:48:35 +0200
committerBenoît Monin <benoit.monin@gmx.fr>2021-09-23 11:57:59 +0200
commit8755e85d13b1170882cd5108cf20a63d94573155 (patch)
tree5a6a14f6e951e8531994b96aee64ed81f692a559
parent5c6b4851c5b15b23580b97dd4b93eaa979f54220 (diff)
downloadModemManager-8755e85d13b1170882cd5108cf20a63d94573155.tar.gz
sms: increase send timeout to 5 minutes
The timeout for sms send operation can exceed the current value, so increase it to 5 minutes. Timeouts up to 4 minutes have been observed in the following test scenario: * Power up the modem and wait for registration. * Right when the modem is registered, attenuate the rf signal or remove the antenna. * Immediately try to send an sms. Increasing the timeout cover this corner case.
-rw-r--r--src/mm-base-sms.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mm-base-sms.h b/src/mm-base-sms.h
index e022ec3f6..be8d559cc 100644
--- a/src/mm-base-sms.h
+++ b/src/mm-base-sms.h
@@ -31,7 +31,7 @@
/* 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_BASE_SMS_DEFAULT_SEND_TIMEOUT (5 * 60)
/*****************************************************************************/