[SailfishDevel] SQLite linking

2017-01-18 Thread rinigus
Hi! I wonder what is the best practice concerning linking to sqlite3? It's probably always installed on devices/emulators and there is no problem with deployment of an app requiring it. However, its a bit odd to just cancel off the requirement in RPM SPEC, as I am supposed to do to get it through

Re: [SailfishDevel] Long term TCP connection

2017-01-18 Thread E.S. Rosenberg
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

Re: [SailfishDevel] Long term TCP connection

2017-01-18 Thread george b
Of course, one can't expect a stable TCP connection on a mobile device upon regular use. You are right, the app has to deal with this cases and reconnect in case of a network error. But my testing environment was using wifi only. And I expected the TCP connection to last longer then just 30 minute

Re: [SailfishDevel] Long term TCP connection

2017-01-18 Thread E.S. Rosenberg
The only scenario where you can say "I expected longer times" with any certainty is wired LAN where both parties are on the same switched LAN and there was no significant load on either party or the switch. The moment you're dealing with wireless signals you added so many things into the equation

Re: [SailfishDevel] SQLite linking

2017-01-18 Thread E.S. Rosenberg
Though I have not done this myself yet 2 observations based on your mail: 1. Removing it from the dependency spec is bad (unless you statically link see point 2), though it is currently widely used by system applications and 3rd party applications alike you can never know if in the future someone d

Re: [SailfishDevel] Long term TCP connection

2017-01-18 Thread Andrew Branson
Hi, On 18/01/17 12:45, george b wrote: But my testing environment was using wifi only. And I expected the TCP connection to last longer then just 30 minutes and then collaps. I think further testing might be needed there - such a problem would have been noticed by others. Personally I have ss

Re: [SailfishDevel] SQLite linking

2017-01-18 Thread rinigus
> > > Is the automatic checker not allowing it through with sqlite3 as a > requirement? Are you sure that you used the packagename used on jolla > systems for the requirement? > During deployment as RPM, the specific error is Requires ERROR [libsqlite3.so.0] Cannot require shared libr

Re: [SailfishDevel] SQLite linking

2017-01-18 Thread Slava Monich
I believe rpm automatically detects the dependencies, even if they are not in the spec. Removing the dependency from the spec might not help. There may be some hackish ways of removing a dependency from the rpm headers but I don't think that it would be a good idea. Better to spend time on hack

Re: [SailfishDevel] SQLite linking

2017-01-18 Thread rinigus
Slava, thank you for this constructive suggestion. I submitted PR https://github.com/sailfish-sdk/sdk-harbour-rpmvalidator/pull/86 to add sqlite into the list of allowed libraries. Hopefully, it will be accepted. Best wishes, Rinigus On Wed, Jan 18, 2017 at 3:29 PM, Slava Monich wrote: > I be

Re: [SailfishDevel] Long term TCP connection

2017-01-18 Thread george b
Okay, did a test with an outgoing ssh connection. It's still stable for several hours now. I will do some wireshark recordings and research in this direction. Thank you for the hint. If I found out something usefull, I will post it back here. Bye Georg

Re: [SailfishDevel] Long term TCP connection

2017-01-18 Thread Ove Kåven
Den 17. jan. 2017 19:55, skrev george b: > 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