As a sidenote: when providing an upload facility for users it it better to implement some sort of feedback to the users, otherwise the user may think the application is hanging. I'm looking at the progressbar solution (no flash component needed) given in web2py slice 10, but I haven't got it working completely (FF more or less ok, Chrome not working, has its own feedback on uploads, IE not tested). When testing I occasionally get the same error.
I tested the above db example, I did reproduce the error once when using large (1Gb) files using Debian server, Web2py 1.91.4, Apache 2.0, with SLL and mod_wsgi. But in most cases the session timed out at different points in time. I used Chrome to test. I propose to use a minimal controller to test, leaving the database out of the equation: def post(): form = FORM(TABLE( TR('File:', INPUT(_type='file', _name='file', requires=IS_NOT_EMPTY())), TR('', INPUT(_type='submit', _value='SUBMIT')), )) return dict(form=form) With this test FF and Chrome time-out one the big file, after some minutes, even crash sometimes. Smaller files (8Mb, 20Mb) work fine. Will investigate further on Debian and Windows 2003 and try to produces give a reproducible time-out example. Nico On Apr 11, 11:15 am, sherdim <sher...@gmail.com> wrote: > Hello! > > I have the same pain as described! > > Some file uploads end with : > > Traceback (most recent call last): > File "D:\a\w2p\gluon\main.py", line 410, in wsgibase > parse_get_post_vars(request, environ) > File "D:\a\w2p\gluon\main.py", line 266, in parse_get_post_vars > request.body = copystream_progress(request) ### stores request body > File "D:\a\w2p\gluon\main.py", line 134, in copystream_progress > copystream(source, dest, size, chunk_size) > File "D:\a\w2p\gluon\fileutils.py", line 331, in copystream > data = src.read(chunk_size) > File "C:\a\Python\lib\socket.py", line 351, in read > data = self._sock.recv(left) > timeout: timed out > > It is only for uploads of images (photos) > Text-only updates goes fine. > > From the localnet it is all right. > > Server: Windows Server 2003, web2py from source on the rocket > > web2py™ Version 1.94.6 (2011-03-27 18:20:38) Python Python 2.6.2 > > The same error with and w/o proxy > > Help, please!