#sailfishos-push log for Sunday, 2016-01-03

*** flux <flux!flux@coffee.modeemi.fi> has joined #sailfishos-push04:45
fluxsoo, to actually get a popup message to my user I suppose I need a particular client for it?16:18
fluxmost easily implemented with a shell script running mosquitto-client and dbus-send?16:19
kimmolihttps://github.com/dm8tbr/irssi-mqtt-sailfish16:27
kimmolimy fork seems to have some deps fixed, and tuned notification for sf2.0 https://github.com/kimmoli/irssi-mqtt-sailfish16:29
tbrno pull requests? pah!16:29
kimmolias requested  https://github.com/dm8tbr/irssi-mqtt-sailfish/pull/316:30
kimmoliactually there was one alreday16:31
kimmolinot squashed16:31
fluxso when I roam from wifi to 3g and vice versa, I've set up a script to reconnect my openvpn16:33
fluxis this something I would like to hack to work with the mqtt client, or does it work out of the box?16:34
fluxI guess the default value mqtt_keepalive = 210 in the .py suggests there's going to be at worse 210 second delay in reconnecting in that situation?16:34
tbrit will reconnect automagically16:35
fluxinstantaneously or after a timeout?16:36
tbrafter timeout or when the TCP connection is lost16:37
fluxnot long ago a new feature arrived at the linux kernel: the ability to disconnect connections over an interface that has been brought down16:39
fluxbut I guess it'll be a while till it reached the Jolla :)16:39
fluxin the meanwhile, a more active role (by monitoring the dbus) will dramatically improve the latency involved..16:40
tbrwell, I think that was always possible to reset TCP connections on ifdown16:41
fluxI think it's _possible_ by injecting TCP reset packets, but how else is that possible?16:43
tbrIIRC it's a /proc/net parameter16:45
fluxso I've been playing with the mosquitto_sub/pub. is there a way to receive messages that were published while disconncted?18:06
fluxok, in the publishing end I need to use qos 1 or 2 (ie. -q 1), as well as in the receiving gend, but also with mosquitto_sub I must use -c to prevent it from flusing the queue on input18:14
fluxoh and the receiving end must use a client identifier (-i test)18:15
tbryeah, there are quite a few moving parts. make sure to test thei behaviour to make sure they match you expectations19:08
fluxgah, I made a debian package for my hack.. to remember that jolla runs on rpm :)19:33
fluxthere is no license in the irssi-mqtt-sailfish repo..19:38
fluxoops, missed it 8-)20:02
*** ced117 <ced117!~ced117@opensuse/member/ced117> has quit IRC (Quit: Quitte)21:07
fluxthe irssi script is a bit dangerous to use in shared hosting, given it passes the password in the command line to the external process..21:08
*** flux <flux!flux@coffee.modeemi.fi> has quit IRC (Read error: Connection reset by peer)22:03

Generated by irclog2html.py 2.17.1 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!