homepage

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 george.king
Recipients george.king
Date 2009年12月23日.00:25:33
SpamBayes Score 3.7643888e-11
Marked as misclassified No
Message-id <1261527935.68.0.0855643074362.issue7565@psf.upfronthosting.co.za>
In-reply-to
Content
My builds from trunk fail to open a number of files greater than the 
default 2660, even when I increase the limit using:
resource.setrlimit(resource.RLIMIT_NOFILE, (test_limit, -1))
Attached is a script that doubles the default limit, sets it, queries it 
to make sure that it is set, and then opens the expected number of 
files. The script succeeds when run on the python2.6 that apples ships 
with 10.6, and it succeeds when run on my build of python3.2 trunk 
(updated today). However, it fails on python2.7 trunk (also built 
today). 
here is sample output:
gk > python2.6 ./file_limits_bug.py 
default file limits: (2560, 9223372036854775807)
new file limits: (5120, 9223372036854775807)
gk > python2.7 ./file_limits_bug.py 
default file limits: (2560, 9223372036854775807)
new file limits: (5120, 9223372036854775807)
Traceback (most recent call last):
 File "./file_limits_bug.py", line 34, in <module>
IOError: [Errno 24] Too many open files: 'testfiles/testfile2557'
History
Date User Action Args
2009年12月23日 00:25:35george.kingsetrecipients: + george.king
2009年12月23日 00:25:35george.kingsetmessageid: <1261527935.68.0.0855643074362.issue7565@psf.upfronthosting.co.za>
2009年12月23日 00:25:34george.kinglinkissue7565 messages
2009年12月23日 00:25:34george.kingcreate

AltStyle によって変換されたページ (->オリジナル) /