* [PATCH 0/1] Limits the send sms retry to network timeout
@ 2011-03-17 16:36 Jeevaka Badrappan
2011-03-17 16:36 ` [PATCH 1/1] sms: limit the sms sending retry Jeevaka Badrappan
0 siblings, 1 reply; 4+ messages in thread
From: Jeevaka Badrappan @ 2011-03-17 16:36 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 556 bytes --]
Hi,
If sending of SMS fails, then oFono core will try to resend it after
n * 5 seconds(n = retry count). Due to this, conformance test case
27.22.8 sequence 1.4 fails(refer 31.124 spec). Plan is to limit the
failue codes for which the retry will be done. This patch allows the
retry if the failure is only due to network timeout. For all the other
failure cases, retry is not done.
Regards,
Jeevaka
Jeevaka Badrappan (1):
sms: limit the sms sending retry
src/sms.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/1] sms: limit the sms sending retry
2011-03-17 16:36 [PATCH 0/1] Limits the send sms retry to network timeout Jeevaka Badrappan
@ 2011-03-17 16:36 ` Jeevaka Badrappan
2011-03-17 17:13 ` Denis Kenzior
0 siblings, 1 reply; 4+ messages in thread
From: Jeevaka Badrappan @ 2011-03-17 16:36 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 710 bytes --]
---
src/sms.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/sms.c b/src/sms.c
index 01f54dd..c4f8b54 100644
--- a/src/sms.c
+++ b/src/sms.c
@@ -47,6 +47,7 @@
#define SETTINGS_GROUP "Settings"
#define TXQ_MAX_RETRIES 4
+#define NETWORK_TIMEOUT 332
static gboolean tx_next(gpointer user_data);
@@ -630,6 +631,10 @@ static void tx_finished(const struct ofono_error *error, int mr, void *data)
if (sms->registered == FALSE)
return;
+ /* Retry done only for Network Timeout failure */
+ if (error->error != NETWORK_TIMEOUT)
+ goto next_q;
+
if (!(entry->flags & OFONO_SMS_SUBMIT_FLAG_RETRY))
goto next_q;
--
1.7.0.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] sms: limit the sms sending retry
2011-03-17 16:36 ` [PATCH 1/1] sms: limit the sms sending retry Jeevaka Badrappan
@ 2011-03-17 17:13 ` Denis Kenzior
0 siblings, 0 replies; 4+ messages in thread
From: Denis Kenzior @ 2011-03-17 17:13 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 890 bytes --]
Hi Jeevaka,
On 03/17/2011 11:36 AM, Jeevaka Badrappan wrote:
> ---
> src/sms.c | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/src/sms.c b/src/sms.c
> index 01f54dd..c4f8b54 100644
> --- a/src/sms.c
> +++ b/src/sms.c
> @@ -47,6 +47,7 @@
> #define SETTINGS_GROUP "Settings"
>
> #define TXQ_MAX_RETRIES 4
> +#define NETWORK_TIMEOUT 332
>
> static gboolean tx_next(gpointer user_data);
>
> @@ -630,6 +631,10 @@ static void tx_finished(const struct ofono_error *error, int mr, void *data)
> if (sms->registered == FALSE)
> return;
>
> + /* Retry done only for Network Timeout failure */
> + if (error->error != NETWORK_TIMEOUT)
> + goto next_q;
> +
Please also check error->type here to be CMS error.
> if (!(entry->flags & OFONO_SMS_SUBMIT_FLAG_RETRY))
> goto next_q;
>
Regards,
-Denis
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/1] sms: limit the sms sending retry
2011-03-17 17:20 [PATCH 0/1] Limits the send sms retry to network timeout Jeevaka Badrappan
@ 2011-03-17 17:20 ` Jeevaka Badrappan
0 siblings, 0 replies; 4+ messages in thread
From: Jeevaka Badrappan @ 2011-03-17 17:20 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 756 bytes --]
---
src/sms.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/sms.c b/src/sms.c
index 01f54dd..da810f8 100644
--- a/src/sms.c
+++ b/src/sms.c
@@ -47,6 +47,7 @@
#define SETTINGS_GROUP "Settings"
#define TXQ_MAX_RETRIES 4
+#define NETWORK_TIMEOUT 332
static gboolean tx_next(gpointer user_data);
@@ -630,6 +631,11 @@ static void tx_finished(const struct ofono_error *error, int mr, void *data)
if (sms->registered == FALSE)
return;
+ /* Retry done only for Network Timeout failure */
+ if (error->type == OFONO_ERROR_TYPE_CMS &&
+ error->error != NETWORK_TIMEOUT)
+ goto next_q;
+
if (!(entry->flags & OFONO_SMS_SUBMIT_FLAG_RETRY))
goto next_q;
--
1.7.0.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-03-17 17:20 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-17 16:36 [PATCH 0/1] Limits the send sms retry to network timeout Jeevaka Badrappan
2011-03-17 16:36 ` [PATCH 1/1] sms: limit the sms sending retry Jeevaka Badrappan
2011-03-17 17:13 ` Denis Kenzior
-- strict thread matches above, loose matches on Subject: below --
2011-03-17 17:20 [PATCH 0/1] Limits the send sms retry to network timeout Jeevaka Badrappan
2011-03-17 17:20 ` [PATCH 1/1] sms: limit the sms sending retry Jeevaka Badrappan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.