This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients christian.heimes, hynek, jcea, neologix, pitrou, tarek, vstinner
Date 2013-08-16.16:43:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1376671415.2510.2.camel@fsol>
In-reply-to <1376671082.1.0.874272119893.issue18756@psf.upfronthosting.co.za>
Content
> > Well, even with greenlets, I assume you're using at least one FD
> (socket) per client, no?
> > So you can get EMFILE on socket() just as on os.urandom(). 
> 
> I do many calls on urandom() so that's the FD bottleneck.

Unless you're doing many calls *in parallel* it's unlikely to be a
bottleneck.
At worse you can write your own /dev/urandom reading code, with a shared
fd amongst all your threads / greenlets.

os.urandom() is a convenience function, it doesn't have to be extremely
optimized.
History
Date User Action Args
2013-08-16 16:43:45pitrousetrecipients: + pitrou, jcea, vstinner, christian.heimes, tarek, neologix, hynek
2013-08-16 16:43:45pitroulinkissue18756 messages
2013-08-16 16:43:45pitroucreate