-
lovetox
im pretty sure now it has to do with nbxmpp
-
lovetox
on windows the stream ist just not read fast enough
-
lovetox
i decreased the read timeout to 10 millisecons
-
lovetox
and its fast as hell now
-
lovetox
before it was set to 200
-
lovetox
but why is linux behaving differently
-
lovetox
one clue could be that windows doesnt use the same queue then linux
-
lovetox
..hmm i have no clue about network stuff..
-
lovetox
linus :)
-
linus
Something working on Linux but not on windows? You should know by now that my reaction to that will be "blame windows" :p
-
juan
Gajim has it's own e2e which is not OTR neither OMEMO, what is it? And how can I disable it from automatically starting?
-
linus
Probably OpenPGP!
-
linus
?*
-
linus
Conversations supports it too
-
linus
But I don't think it "starts", you have to enable it manually I think
-
Holger
juan: It's XEP-0116.
-
Holger
juan: It can be controlled with 'autonegotiate_esessions' and 'enable_esessions' in the ACE.
-
juan
nice.. didn't know about xep 0116, I wonder why it's not more widely used
-
lovetox
haha :D
-
lovetox
http://9gag.com/gag/aAPWP4o
-
linus
nah
-
zak
Hmm... how do I read this... after some initial time you spend a negative amount of time learning with linux? ;-)
-
zak
...but then, if you happen to survive, you will drive a bulldozer and ride over all those others who failed :)
-
lovetox
:D
-
lovetox
this whole socket stuff is too much for me
-
lovetox
where is the guy who wrote this stuff in nbxmpp
-
tmolitor
lovetox: maybe I can help with the socket stuff...
-
Asterix
it's a long long time dkirov wrote that. He is no more arround for a long time now
-
lovetox
tmolitor then turn on you windows vm and go :)
-
lovetox
in nbxmpp there is a class called IdleQueue
-
lovetox
windows and unix use different subclasses of that to send and receive data from the socket
-
lovetox
on unix there is GLib.io_add_watch used
-
lovetox
which basically looks on every gtk.main loop on the socket and sees if its open to write or receive
-
lovetox
and calls the appropriate functions for either
-
lovetox
so this is pretty fast, gtk main loop is basically all the time i think
-
lovetox
for windows there is another subclass because GLib.io_add_watch was not available for a long time
-
lovetox
it is now with a recent update to pygobject
-
lovetox
so what windows did until now is, create its own loop with GLib.add_timeout
-
lovetox
but only 200 ms timeout
-
lovetox
means we can only pull or send data 5 times per second
-
lovetox
which is incredibly slow
-
lovetox
now we could just reduce this to like 10 ms, but the much cleaner version would be to make it with io_add_watch possible
-
lovetox
for this to work you have to download the latest pygjobect stuff from github
-
tmolitor
lovetox: wouldn't this mean that the pygobject version in the windows build has to be updated to the newest version, too?
-
lovetox
yeah but that would be no problem :)
-
lovetox
talking about default branch of course
-
lovetox
for gtk2 there is no hope
-
lovetox
you could even add it yourself, the commit to GLib.py is like 5 lines
-
lovetox
https://github.com/GNOME/pygobject/commit/1cb6c470e9d297afda21b73efaccb0b95e519b5d
-
tmolitor
oh...sounds nice...I'll have look once I've debugged some code for my own project...