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)

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).

Regards,
Eli

2017-01-17 20:55 GMT+02:00 george b <scooterschors...@gmail.com>:

> Hi
>
> 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.
>
> 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.
>
> Any suggestions what I can try to get the pure TCP connection stable?
>
> Bye
> Georg
>
> [1] https://github.com/geobra/harbour-shmoose
>
> _______________________________________________
> SailfishOS.org Devel mailing list
> To unsubscribe, please send a mail to devel-unsubscribe@lists.
> sailfishos.org
>
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org

Reply via email to