Tarek Ziadé added the comment: > 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. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18756> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com