From: Patrick N. <ma...@pa...> - 2010-01-24 07:00:26
|
Hi, I just discovered xmpppy (which is great, thanks!), and I am a Python newbie. When I try using xmpppy with the example script, it often (but not always) hangs when I call the script. strace tells me, that it's waiting for data from /dev/random. This happens during the 'import xmpp' call. Now, this probably doesn't happen on busy systems, where /dev/random always has numbers, but on my quiet home server, it's definitely annoying. Since I'm a Python newbie, I don't know how things are done there, but from my experience just doing 'import <library>' shouldn't do complex things that can go wrong or take a long time, such as getting a random number from /dev/random. Wouldn't be the xmpp.Client constructor (or however that is called in Python land) be a better place for that? Thanks, Patrick. -- Key ID: 0x86E346D4 http://patrick-nagel.net/key.asc Fingerprint: 7745 E1BE FA8B FBAD 76AB 2BFC C981 E686 86E3 46D4 |