Freebsd 5.4-STABLE Apache 1.3 mod_scgi with scgi-ajax fix Latest rails gem (RC) scgi_rails 0.4.2 Whenever I call send_data I get the following error on the console from scgi. Everything seems to work ok though. /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.10.1/lib/action_controller/streaming.rb:71: warning: syswrite for buffered IO Chris _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Well, it''s just a warning, but that is odd. It may be related to how the socket is used as the output buffer directly for rails. Something I debated for a bit. I''ll look at it. Zed On Fri, 21 Oct 2005 00:35:06 -0700 snacktime <snacktime-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Freebsd 5.4-STABLE > Apache 1.3 > mod_scgi with scgi-ajax fix > Latest rails gem (RC) > scgi_rails 0.4.2 > > Whenever I call send_data I get the following error on the console > from scgi. Everything seems to work ok though. > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.10.1/lib/action_controller/streaming.rb:71: > warning: syswrite for buffered IO > > Chris >
On 10/21/05, Zed A. Shaw <zedshaw-dd7LMGGEL7NBDgjK7y7TUQ@public.gmane.org> wrote:> > Well, it''s just a warning, but that is odd. It may be related to how > the socket is used as the output buffer directly for rails. Something > I debated for a bit. I''ll look at it. > > Zed > > On Fri, 21 Oct 2005 00:35:06 -0700 > snacktime <snacktime-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Freebsd 5.4-STABLE > > Apache 1.3 > > mod_scgi with scgi-ajax fix > > Latest rails gem (RC) > > scgi_rails 0.4.2 > > > > Whenever I call send_data I get the following error on the console > > from scgi. Everything seems to work ok though. > > > > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.10.1 > /lib/action_controller/streaming.rb:71: > > warning: syswrite for buffered IO > > >Correction on this. Although it only shows a warning in scgi, in rails it''s an IO error. Errno::EIO (Input/output error): /usr/local/lib/ruby/gems/18/gems/actionpack-1101/lib/action_controller/streamingrb:71:in `write'' /usr/local/lib/ruby/gems/18/gems/actionpack-1101/lib/action_controller/streamingrb:71:in `syswrite'' /usr/local/lib/ruby/gems/18/gems/actionpack-1101/lib/action_controller/streamingrb:71:in `send_file'' /usr/local/lib/ruby/gems/18/gems/actionpack-1101/lib/action_controller/streamingrb:67:in `open'' /usr/local/lib/ruby/gems/18/gems/actionpack-1101/lib/action_controller/streamingrb:67:in `send_file'' /usr/local/lib/ruby/gems/18/gems/actionpack-1101/lib/action_controller/streamingrb:64:in `call'' /usr/local/lib/ruby/gems/18/gems/actionpack-1101/lib/action_controller/cgi_processrb:156:in `out'' /usr/local/lib/ruby/gems/18/gems/rails-0141/lib/dispatcherrb:36:in `dispatch'' /usr/local/lib/ruby/gems/18/gems/scgi_rails-042/bin/scgi_service:23:in `process_request'' /usr/local/lib/ruby/gems/18/gems/scgi_rails-042/bin/scgi_service:21:in `synchronize'' /usr/local/lib/ruby/gems/18/gems/scgi_rails-042/bin/scgi_service:21:in `process_request'' /usr/local/lib/ruby/site_ruby/18/scgirb:284:in `read_header'' /usr/local/lib/ruby/site_ruby/18/scgirb:243:in `handle_client'' /usr/local/lib/ruby/site_ruby/18/scgirb:219:in `initialize'' /usr/local/lib/ruby/site_ruby/18/scgirb:219:in `new'' /usr/local/lib/ruby/site_ruby/18/scgirb:219:in `handle_client'' /usr/local/lib/ruby/site_ruby/18/scgirb:179:in `listen'' /usr/local/lib/ruby/site_ruby/18/scgirb:177:in `initialize'' /usr/local/lib/ruby/site_ruby/18/scgirb:177:in `new'' /usr/local/lib/ruby/site_ruby/18/scgirb:177:in `listen'' /usr/local/lib/ruby/site_ruby/18/scgirb:405:in `run'' /usr/local/lib/ruby/gems/18/gems/scgi_rails-042/bin/scgi_service:61 _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Also, those error messages were when running in production mode. In development mode I just get an apache server error with the following (the streamed file is a pdf): [Fri Oct 21 10:07:39 2005] [error] [client 67.42.84.167<http://67.42.84.167>] malformed header from script. Bad header=%PDF-1.3: /cadmin/downloads/download [Fri Oct 21 10:07:39 2005] [error] [client 67.42.84.167<http://67.42.84.167>] scgi: error reading response headers _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
zedshaw-dd7LMGGEL7NBDgjK7y7TUQ@public.gmane.org
2005-Oct-21 21:53 UTC
Re: SCGI error with send_data
Hmm, ok, I''ll start trying to figure it out. I actually would rather move the send_file/multipart mime stuff into SCGI, but not sure how that would go over with other folks. Zed A. Shaw http://www.zedshaw.com/> On 10/21/05, Zed A. Shaw <zedshaw-dd7LMGGEL7NBDgjK7y7TUQ@public.gmane.org> wrote: >> >> Well, it''s just a warning, but that is odd. It may be related to how >> the socket is used as the output buffer directly for rails. Something >> I debated for a bit. I''ll look at it. >> >> Zed >> >> On Fri, 21 Oct 2005 00:35:06 -0700 >> snacktime <snacktime-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> > Freebsd 5.4-STABLE >> > Apache 1.3 >> > mod_scgi with scgi-ajax fix >> > Latest rails gem (RC) >> > scgi_rails 0.4.2 >> > >> > Whenever I call send_data I get the following error on the console >> > from scgi. Everything seems to work ok though. >> > >> > /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.10.1 >> /lib/action_controller/streaming.rb:71: >> > warning: syswrite for buffered IO >> > >> > > > Correction on this. Although it only shows a warning in scgi, in rails > it''s > an IO error. > > > > Errno::EIO (Input/output error): > /usr/local/lib/ruby/gems/18/gems/actionpack-1101/lib/action_controller/streamingrb:71:in > `write'' > /usr/local/lib/ruby/gems/18/gems/actionpack-1101/lib/action_controller/streamingrb:71:in > `syswrite'' > /usr/local/lib/ruby/gems/18/gems/actionpack-1101/lib/action_controller/streamingrb:71:in > `send_file'' > /usr/local/lib/ruby/gems/18/gems/actionpack-1101/lib/action_controller/streamingrb:67:in > `open'' > /usr/local/lib/ruby/gems/18/gems/actionpack-1101/lib/action_controller/streamingrb:67:in > `send_file'' > /usr/local/lib/ruby/gems/18/gems/actionpack-1101/lib/action_controller/streamingrb:64:in > `call'' > /usr/local/lib/ruby/gems/18/gems/actionpack-1101/lib/action_controller/cgi_processrb:156:in > `out'' > /usr/local/lib/ruby/gems/18/gems/rails-0141/lib/dispatcherrb:36:in > `dispatch'' > /usr/local/lib/ruby/gems/18/gems/scgi_rails-042/bin/scgi_service:23:in > `process_request'' > /usr/local/lib/ruby/gems/18/gems/scgi_rails-042/bin/scgi_service:21:in > `synchronize'' > /usr/local/lib/ruby/gems/18/gems/scgi_rails-042/bin/scgi_service:21:in > `process_request'' > /usr/local/lib/ruby/site_ruby/18/scgirb:284:in `read_header'' > /usr/local/lib/ruby/site_ruby/18/scgirb:243:in `handle_client'' > /usr/local/lib/ruby/site_ruby/18/scgirb:219:in `initialize'' > /usr/local/lib/ruby/site_ruby/18/scgirb:219:in `new'' > /usr/local/lib/ruby/site_ruby/18/scgirb:219:in `handle_client'' > /usr/local/lib/ruby/site_ruby/18/scgirb:179:in `listen'' > /usr/local/lib/ruby/site_ruby/18/scgirb:177:in `initialize'' > /usr/local/lib/ruby/site_ruby/18/scgirb:177:in `new'' > /usr/local/lib/ruby/site_ruby/18/scgirb:177:in `listen'' > /usr/local/lib/ruby/site_ruby/18/scgirb:405:in `run'' > /usr/local/lib/ruby/gems/18/gems/scgi_rails-042/bin/scgi_service:61 > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >