<div dir="ltr"><div><div><div>Are you sure the infrastructure you are running on may not be at fault? (3G/4G or an ISP using carrier grade NAT may be trying to free up connections every X time or just switching your outgoing route breaking the connection)<br><br></div>Either way there is no such thing as a stable TCP connection, obviously you want it to be as stable as possible but your application should still be capable of re-establishing a lost connection in the event something happens (and something always happens, whether it's loss of reception, switching from WLAN to 3/4G or some error somewhere upstream).<br><br></div>Regards,<br></div>Eli<br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-01-17 20:55 GMT+02:00 george b <span dir="ltr"><<a href="mailto:scooterschorschi@gmail.com" target="_blank">scooterschorschi@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi<br><br></div>My xmpp client [1] makes progress and works very well. But I have problems with connection drops after about half an hour of device inactivity. I tried to send xmpp pings to the server in regular intervalls to keep the connection on. Then I tried to set the keepalive flag on the tcp socket. Nothing seems to help with this issue.<br><br></div>In a signal client I developed, there was the backend written in go, which uses websockets as protocol. Using this, there wasn't such drops in the connection.<br><br></div>Any suggestions what I can try to get the pure TCP connection stable?<br><div><div><br></div><div>Bye<br></div><div>Georg<br></div><div><br>[1] <a href="https://github.com/geobra/harbour-shmoose" target="_blank">https://github.com/geobra/<wbr>harbour-shmoose</a><br></div></div></div>
<br>______________________________<wbr>_________________<br>
SailfishOS.org Devel mailing list<br>
To unsubscribe, please send a mail to <a href="mailto:devel-unsubscribe@lists.sailfishos.org">devel-unsubscribe@lists.<wbr>sailfishos.org</a><br></blockquote></div><br></div>