RE: gwthread_sleep
"Oded Arbel" <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
That's wierd, as you should not recieve an EAGAIN error on a write to a non-connected device. are you sure that this is were it was stuck ? -- Oded Arbel m-Wise mobile solutions [email protected] +972-9-9581711 (116) +972-67-340014 ::.. The biggest lies: 5. You get this one, I'll pay next time. -----Original Message----- From: Andrea Viscovich [mailto:[email protected]] Sent: Friday, October 18, 2002 2:42 PM To: [email protected] Subject: gwthread_sleep 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 <mailto:[email protected]> email :[email protected]