From: Norman R. <no...@ra...> - 2010-01-31 23:55:44
|
btw, dnspython 1.8 doesn't seed the entropy pool unless it's needed. it also uses os.random if possible. both of these should help remove the hangs. On Sun, Jan 24, 2010 at 6:41 PM, Norman Rasmussen <no...@ra...>wrote: > This feature is brought to you by pythondns, see: > > http://www.mail-archive.com/dns...@ho.../msg00003.html > > http://howl.play-bow.org/pipermail/dnspython-users/2009-September/000112.html > > On Sun, Jan 24, 2010 at 7:00 AM, Patrick Nagel <ma...@pa...>wrote: > >> 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 >> >> >> ------------------------------------------------------------------------------ >> Throughout its 18-year history, RSA Conference consistently attracts the >> world's best and brightest in the field, creating opportunities for >> Conference >> attendees to learn about information security's most important issues >> through >> interactions with peers, luminaries and emerging and established >> companies. >> http://p.sf.net/sfu/rsaconf-dev2dev >> _______________________________________________ >> Xmpppy-devel mailing list >> Xmp...@li... >> https://lists.sourceforge.net/lists/listinfo/xmpppy-devel >> >> > > > -- > - Norman Rasmussen > - Email: no...@ra... > - Home page: http://norman.rasmussen.co.za/ > -- - Norman Rasmussen - Email: no...@ra... - Home page: http://norman.rasmussen.co.za/ |