From: Denis Kenzior <denkenz@gmail.com>
To: ofono@ofono.org
Subject: Re: Unreliable next_msg_id (was Re: [PATCH 2/2] Added SQLite history plugin)
Date: Thu, 15 Apr 2010 13:35:16 -0500 [thread overview]
Message-ID: <201004151335.17156.denkenz@gmail.com> (raw)
In-Reply-To: <p2r359c5481004150702he9dd6211y44d4ac727934102e@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1314 bytes --]
Hi Niko,
> Hi!
>
> At first look it seems that ofono stores permanently the next_msg_id
> only when the "sms_remove" functions is called, and that's does not
> happen when ofono quits in a not clean way.
>
> During our tests, users reported bad behaivour of the sqlite history
> plugins and error messages about sqlite constraints violation, after a
> rude power off of the device (battery drained, forced shutdown with
> long press power button, and so on).
So the immediate fix is to set & sync the SMS settings whenever the next_msg_id
is updated.
>
> That's becouse ofono on the next start reads an "old" next_msg_id from
> the permanent storage, so when sending/receiving a new message the
> history plugin fails to insert a new row as one with the same msg_id
> was already inserted in the prev session.
>
> Any suggestion to fix that?
The proper fix is to generate a SHA1 or MD5 hash over the contents, local
reception/send time, remote reception / send time, destination / originator of
the message.
>
> Finally, we'd like to use some "panic" function in ofono, that should
> power down all modems and warn clients when critical conditions
> happen.
>
> Is that possible?
Send HUP to the daemon? Or do you want oFono to keep running?
Regards,
-Denis
next prev parent reply other threads:[~2010-04-15 18:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-15 14:02 Unreliable next_msg_id (was Re: [PATCH 2/2] Added SQLite history plugin) Nicola Mfb
2010-04-15 18:35 ` Denis Kenzior [this message]
2010-04-15 21:57 ` Nicola Mfb
2010-04-15 22:24 ` Denis Kenzior
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201004151335.17156.denkenz@gmail.com \
--to=denkenz@gmail.com \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.