> The framework is web.py. Ok, thank you, while i debug this, can you check if disabling post-buffering helps ?
> > > ------------------ Original ------------------ > From: "Roberto De Ioris"<[email protected]>; > Date: Tue, Mar 26, 2013 10:22 PM > To: "uWSGI developers and users list"<[email protected]>; > > Subject: Re: [uWSGI] upload file error > > > > >> Hi all. >> I update uwsgi to 1.9.1, when I upload a file in my app, it throw an >> error: >> >> consume_body_for_readline()/fread(): Success [core/reader.c line 116] >> Traceback (most recent call last): >> File "/usr/local/lib/python2.7/dist-packages/web/application.py", >> line >> 239, in process >> return self.handle() >> File "/usr/local/lib/python2.7/dist-packages/web/application.py", >> line >> 230, in handle >> return self._delegate(fn, self.fvars, args) >> File "/usr/local/lib/python2.7/dist-packages/web/application.py", >> line >> 405, in _delegate >> return handle_class(f) >> File "/usr/local/lib/python2.7/dist-packages/web/application.py", >> line >> 396, in handle_class >> return tocall(*args) >> File "./main.py", line 13, in decorated >> inp = web.input() >> File "/usr/local/lib/python2.7/dist-packages/web/webapi.py", line >> 330, >> in input >> out = rawinput(_method) >> File "/usr/local/lib/python2.7/dist-packages/web/webapi.py", line >> 303, >> in rawinput >> a = cgi.FieldStorage(fp=fp, environ=e, keep_blank_values=1) >> File "/usr/lib/python2.7/cgi.py", line 508, in __init__ >> self.read_multi(environ, keep_blank_values, strict_parsing) >> File "/usr/lib/python2.7/cgi.py", line 637, in read_multi >> environ, keep_blank_values, strict_parsing) >> File "/usr/lib/python2.7/cgi.py", line 510, in __init__ >> self.read_single() >> File "/usr/lib/python2.7/cgi.py", line 647, in read_single >> self.read_lines() >> File "/usr/lib/python2.7/cgi.py", line 669, in read_lines >> self.read_lines_to_outerboundary() >> File "/usr/lib/python2.7/cgi.py", line 697, in >> read_lines_to_outerboundary >> line = self.fp.readline(1<<16) >> IOError: error during readline(65536) on wsgi.input >> >> Then I reinstall uwsgi-1.4.9, upload success. >> Is there any way to fix this >> error?_______________________________________________ >> > > It is a bug for sure (i will check this soon), but can i ask which > framework is still using readline() in that way ? > > > -- > Roberto De Ioris > http://unbit.it > _______________________________________________ > uWSGI mailing list > [email protected] > http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi_______________________________________________ > uWSGI mailing list > [email protected] > http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi > -- Roberto De Ioris http://unbit.it _______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
