[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: smsc_timeout, is it possible to turn it off ?
From: |
Daniele Forsi |
Subject: |
Re: smsc_timeout, is it possible to turn it off ? |
Date: |
Wed, 16 May 2007 22:35:09 +0200 |
User-agent: |
KMail/1.9.4 |
Krzysztof Śniadoch wrote:
> as I've noticed, it's quite rare when message isn't send, so the confirmation
> only confirms something that is almost always true.
only you can decide the tradeoff between speed and reliability
> All errors except timeout are important.
changing the way this timeout works is too difficult, but you could remove the
piece of code that starts waiting for smsc answer
for the nk6510 driver that you are using this would be (untested):
--- common/phones/nk6510.c.orig 2007-05-16 22:12:29.000000000 +0200
+++ common/phones/nk6510.c 2007-05-16 22:13:12.000000000 +0200
@@ -1489,10 +1489,7 @@
dprintf("Sending SMS...(%d)\n", pos + 9);
if (sm_message_send(pos + 9, NK6510_MSG_SMS, req, state)) return
GN_ERR_NOTREADY;
- do {
- error = sm_block_no_retry_timeout(NK6510_MSG_SMS,
state->config.smsc_timeout, data, state);
- } while (!state->config.smsc_timeout && error == GN_ERR_TIMEOUT);
- return error;
+ return GN_ERR_NONE;
}
/*****************/
--
Daniele
Re: smsc_timeout, is it possible to turn it off ?, Pawel Kot, 2007/05/15