Author tarek
Recipients christian.heimes, hynek, jcea, neologix, pitrou, tarek, vstinner
Date 2013-08-16.16:38:01
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1376671082.1.0.874272119893.issue18756@psf.upfronthosting.co.za>
In-reply-to
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.

> So os.urandom() isn't your biggest problem here.

Of course it is. But it looks like you know better without having looked at the code. :)

> I'd suggest you to just open '/dev/urandom' once, 
> and then make all your threads/green-threads read from it.

Let me know how to do this without being able to prevent the API to close the FD everytime.

> IMO os.urandom() is a really poor API ;-)

Then we should improve it or deprecate it.
History
Date User Action Args
2013-08-16 16:38:02tareksetrecipients: + tarek, jcea, pitrou, vstinner, christian.heimes, neologix, hynek
2013-08-16 16:38:02tareksetmessageid: <1376671082.1.0.874272119893.issue18756@psf.upfronthosting.co.za>
2013-08-16 16:38:02tareklinkissue18756 messages
2013-08-16 16:38:01tarekcreate