I''''m using the link_to_remote helper in a View like this: <%= link_to_remote "Add new", :update => "items", :position => "bottom", :url => { :action => "add_item", :id => @container.id, } %> The helper fires off a request to the Controller, which does it''s thing and then returns a response View, which is injected into the DOM element ''items''. All works absolutely fine in Safari and Firefox (PC & Mac), but I''m experiencing a strange delay with IE 6. Every time the link is clicked, it takes 30 seconds for the response to be displayed - every time. Checking the server shows that the request is received and sent back almost immediately (this is only running off of a local server), so I think it must be Internet Explorer which is creating the lag. Has anyone experienced any similar behaviour? -Phil
Well, having checked the headers of the responses from my app, every one has a value of Content-lenght: 0 I''m running through the basic WEBrick server on a local machine and haven''t made any major config changes. Does anyone have any idea as to why this is happening? -Phil On 14 Jun 2005, at 10:45 am, Phil Powell wrote:> I''''m using the link_to_remote helper in a View like this: > > <%= link_to_remote "Add new", > :update => "items", > :position => "bottom", > :url => { :action => "add_item", > :id => @container.id, } %> > > The helper fires off a request to the Controller, which does it''s > thing and then returns a response View, which is injected into the DOM > element ''items''. > > All works absolutely fine in Safari and Firefox (PC & Mac), but I''m > experiencing a strange delay with IE 6. Every time the link is > clicked, it takes 30 seconds for the response to be displayed - every > time. Checking the server shows that the request is received and sent > back almost immediately (this is only running off of a local server), > so I think it must be Internet Explorer which is creating the lag. > > Has anyone experienced any similar behaviour? > > -Phil > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > >
On 6/14/05, Phil Powell <phil-ldtTreVRrIMcWVvVuXF20w@public.gmane.org> wrote:> Well, having checked the headers of the responses from my app, every > one has a value of Content-lenght: 0 > > I''m running through the basic WEBrick server on a local machine and > haven''t made any major config changes. > > Does anyone have any idea as to why this is happening?I wish I knew... thankfully, this problem only happens to me under WEBrick, which means that my app is fine after I deploy (to lighttpd/fastcgi). However, it makes testing in IE against WEBrick unbelievably painful. If anyone has any ideas on fixing this, they''d be very, very welcome. Thanks, -- Nathaniel <:((><
Good to hear that I''m not the only one that''s experienced this ;) I''m now running through fast-cgi and apache, but get nasty errors complaining about incomplete headres from FastCGI. Would seem to me that there''s something odd happening with the dispatcher, which isn''t forming the headers properly (I checked headers being served, and they appear to be truncated) Either that, or something is very awry in my setup somewhere. -Phil On 14 Jun 2005, at 2:07 pm, Nathaniel Talbott wrote:> I wish I knew... thankfully, this problem only happens to me under > WEBrick, which means that my app is fine after I deploy (to > lighttpd/fastcgi). However, it makes testing in IE against WEBrick > unbelievably painful. If anyone has any ideas on fixing this, they''d > be very, very welcome.
Well, this gets more and more curious. Some general points: 1) I''ve run tests to check HTTP headers of dynamic pages served through WEBrick on several machines (OS X and Debian) which return ''Content-length: 0'' curl http://server.name:3000/path/to/controller/ -I 2) Everything runs fine under Firefox and Safari. 3) When I test using cgi and fastcgi, apache1.3 and apache2 and the above browsers, everything is fine. 4) Internet Explorer 6 is the only browser which prompts an error. Under both cgi and fastcgi, I get an ''incomplete header'' error in my apache logs (which is prompted by either cgi or fastcgi) I''ve done a fresh install of Rails, done a replica install on another OS X machine, and see consistent errors across all platforms. I am now getting very, very confused. I still feel as though this is somewhere attributed to something the dispatcher is doing - malformed headers seem to be the main culprit, and dispatcher.rb would appear to be feeding content to dispatcher.cgi or dispatcher.fcgi. Anyone have any clues / ideas / pointers as to what could be wrong? I want to get rails running in a production environment - but until I''m satisfied that I can get deve running OK, I can''t proceed any further. -Phil On 14 Jun 2005, at 3:04 pm, Phil Powell wrote:> Good to hear that I''m not the only one that''s experienced this ;) > > I''m now running through fast-cgi and apache, but get nasty errors > complaining about incomplete headres from FastCGI. > > Would seem to me that there''s something odd happening with the > dispatcher, which isn''t forming the headers properly (I checked > headers being served, and they appear to be truncated) Either that, > or something is very awry in my setup somewhere. > > -Phil > > On 14 Jun 2005, at 2:07 pm, Nathaniel Talbott wrote: > >> I wish I knew... thankfully, this problem only happens to me under >> WEBrick, which means that my app is fine after I deploy (to >> lighttpd/fastcgi). However, it makes testing in IE against WEBrick >> unbelievably painful. If anyone has any ideas on fixing this, they''d >> be very, very welcome. > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > >