I have a very simply application that essentially displays 10 or so images using the included 'download' function as the source URL for the image tag. I am able to cause the following error by repeatedly refreshing the page (with a few seconds delay between each refresh). After 20 or so refreshes I start getting the "too many open files" errors.
I am assuming that "response.stream" (the heart of the download method) closes the file when it is done, and this is something deeper? Paul (running web2py 1.67.1 from source on Mac 10.5.8, python 2.6.2) ERROR:root:Traceback (most recent call last): File "/Users/green/work/CollaborativePhoto/Code/Server/web2py/gluon/ main.py", line 319, in wsgibase File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/tempfile.py", line 475, in TemporaryFile File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/tempfile.py", line 228, in _mkstemp_inner OSError: [Errno 24] Too many open files: '/var/folders/QH/ QHI5OCT0HD0NfYKlwdXKpk+++TI/-Tmp-/tmp7cAB3k' WARNING:root:no cache.disk (IOError) WARNING:root:no cache.disk (IOError) ERROR:root:Traceback (most recent call last): File "/Users/green/work/CollaborativePhoto/Code/Server/web2py/gluon/ main.py", line 319, in wsgibase File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/tempfile.py", line 475, in TemporaryFile File "/Library/Frameworks/Python.framework/Versions/2.6/lib/ python2.6/tempfile.py", line 228, in _mkstemp_inner OSError: [Errno 24] Too many open files: '/var/folders/QH/ QHI5OCT0HD0NfYKlwdXKpk+++TI/-Tmp-/tmpoVTXU9' ERROR:root:Traceback (most recent call last): File "/Users/green/work/CollaborativePhoto/Code/Server/web2py/gluon/ main.py", line 389, in wsgibase serve_controller(request, response, session) File "/Users/green/work/CollaborativePhoto/Code/Server/web2py/gluon/ main.py", line 160, in serve_controller page = run_controller_in(request.controller, request.function, environment) File "/Users/green/work/CollaborativePhoto/Code/Server/web2py/gluon/ compileapp.py", line 294, in run_controller_in fp = open(filename, 'r') IOError: [Errno 24] Too many open files: '/Users/green/work/ CollaborativePhoto/Code/Server/web2py/applications/server/controllers/ default.py' --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/web2py?hl=en -~----------~----~----~----~------~----~------~--~---