gwthread_sleep

"Andrea Viscovich" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
I tried to take away one modem while kannel was running.
I had a keepalive command at+csq and keepalive = 60
I expected him to recognise it hadn't received an OK
when sending the AT+CSQ command and a reconnect.
Instead in the log there was the AT+CSQ command showed
and nothing else. When I reconnected the modem it was working again.
So it seems that he never went out from this loop:
in at2_write_line

while (1) {

errno = 0;

s = write(privdata->fd, octstr_get_cstr(linestr), count);

if (s < 0 && errno == EAGAIN && write_count < RETRY_SEND) {

gwthread_sleep(1);

++write_count;

} else

break;

};



The only thing I can think about is that gwthread_sleep(1) has some problems

under cygwin, but really I'm not sure about this.

Any hint?

Andrea

 

Dott. Andrea Viscovich
Direct Line: +39 041 2574825
Email2Mobile: [email protected]
Web: http://www.smsprof.it
email :[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.