Hi, I''m using Merb from the svn repository (revision 224, Merb 0.3.0). I am playing around trying to return static files. I''m opening a File and returning that from the controller. I''m setting the mime type and the content length (other wise nothing much happens). All requests for static content go through the same action of a particular controller. This is working with Firefox, Camino, and wget, or it appears to. And is quite quick. Nice. With Safari and other webkit based browsers (e.g. OmniWeb, Xyle Scope), I''m having problems loading html files. The html loads, and the two css files are being requested, but the activity browser in Safari show them to be the same size (.2k is correct for one of the css files, but the other is more like 7k). The big one is always requested first, the small second. If I hack at the html so that only one css file is requested, it gets that, but then messes up on the png files referred to by the css. Every time I refresh some other largely random mess up occurs. This is looking a lot like a threading issue of some kind. So I put a "sleep 1" in the controller and the messing up stops. Of course, that isn''t a real solution. ---- Another little problem (maybe), the Set-Cookie header is ''interesting'' and appears to be getting longer and longer. "Set-Cookie"=>" _session_id=ei5RSG1MemL6yeeIS7ELWrDh97YDUic5; path=/; expires=Mon, 14 May 2007 15:00:12 -0400 _session_id=42WRv32VAqxvdpexdz9CoyJMwPQaDBwB; path=/; expires=Mon, 14 May 2007 15:00:19 -0400 _session_id=SD2SXduFQcYjaEIMwMIgN2J94Yriz5qb; path=/; expires=Mon, 14 May 2007 15:00:57 -0400 _session_id=Gj2UTejMWhfH0idIGCuPIZPWQUnK7qfc; path=/; expires=Mon, 14 May 2007 15:02:54 -0400 _session_id=LHeVQ6EgEg0YaiFxKDnAROgwuPYMECFi; path=/; expires=Mon, 14 May 2007 15:04:04 -0400 _session_id=DwErEBj6Jo4jxcQNpOTAgftmPeS7saC6; path=/; expires=Mon, 14 May 2007 15:05:28 -0400 _session_id=iRu1mrhMovZCG41TidTboJ4PnCFM8cyA; path=/; expires=Mon, 14 May 2007 15:43:12 -0400 _session_id=ybOwsglrviARiViZaPiROjlKDlY3601j; path=/; expires=Mon, 14 May 2007 15:50:06 -0400 _session_id=wyJIqI5OaSD9GWwWYCEoUxz8BQCUYYED; path=/; expires=Mon, 14 May 2007 15:50:54 -0400 _session_id=dSTGIJLx2ACDj0V5csNSYY9bUG8NbOfU; path=/; expires=Mon, 14 May 2007 15:51:51 -0400 _session_id=o7G2Mtwnhoo7AEpEY85RU5maZEqikyOO; path=/; expires=Mon, 14 May 2007 15:53:56 -0400 _session_id=J7LpCVA0xt4VTAcZDn4JMK2YxZInmcty; path=/; expires=Mon, 14 May 2007 15:57:13 -0400 _session_id=eIAxImptzZYBJdAmBetjYCh7lYQkqNHB; path=/; expires=Mon, 14 May 2007 15:57:45 -0400 _session_id=0fZwX7GQo7ELTKFDinUbXC100ERZrTjK; path=/; expires=Mon, 14 May 2007 15:58:17 -0400 _session_id=otLv3y2IJ5FWMUMHNntu97ECP2s2vRuk; path=/; expires=Mon, 14 May 2007 16:00:49 -0400 _session_id=CLyCHhTCJxYRojwDP7XscKeIVfW5lIuQ; path=/; expires=Mon, 14 May 2007 16:05:17 -0400" Cheers, Bob ---- Bob Hutchison -- tumblelog at <http:// www.recursive.ca/so/> Recursive Design Inc. -- <http://www.recursive.ca/> xampl for Ruby -- <http://rubyforge.org/projects/xampl/>
Hey Bob- On a little further investigation I discovered the problem. I had made frozen CONSTS out of some parameters merbs uses over and over and I went too far for the response headers hash. I just commited the fix to trunk and bumped the version number to 0.3.1 and released a gem. This will undoubtedly fix your problem. Thanks for the report. CHeers- -Ezra On Apr 30, 2007, at 1:30 PM, Bob Hutchison wrote:> Hi, > > I''m using Merb from the svn repository (revision 224, Merb 0.3.0). > > I am playing around trying to return static files. I''m opening a File > and returning that from the controller. I''m setting the mime type and > the content length (other wise nothing much happens). All requests > for static content go through the same action of a particular > controller. > > This is working with Firefox, Camino, and wget, or it appears to. And > is quite quick. Nice. > > With Safari and other webkit based browsers (e.g. OmniWeb, Xyle > Scope), I''m having problems loading html files. The html loads, and > the two css files are being requested, but the activity browser in > Safari show them to be the same size (.2k is correct for one of the > css files, but the other is more like 7k). The big one is always > requested first, the small second. If I hack at the html so that only > one css file is requested, it gets that, but then messes up on the > png files referred to by the css. Every time I refresh some other > largely random mess up occurs. > > This is looking a lot like a threading issue of some kind. So I put a > "sleep 1" in the controller and the messing up stops. Of course, that > isn''t a real solution. > > ---- > > Another little problem (maybe), the Set-Cookie header is > ''interesting'' and appears to be getting longer and longer. > > "Set-Cookie"=>" _session_id=ei5RSG1MemL6yeeIS7ELWrDh97YDUic5; path=/; > expires=Mon, 14 May 2007 15:00:12 -0400 > _session_id=42WRv32VAqxvdpexdz9CoyJMwPQaDBwB; path=/; expires=Mon, 14 > May 2007 15:00:19 -0400 _session_id=SD2SXduFQcYjaEIMwMIgN2J94Yriz5qb; > path=/; expires=Mon, 14 May 2007 15:00:57 -0400 > _session_id=Gj2UTejMWhfH0idIGCuPIZPWQUnK7qfc; path=/; expires=Mon, 14 > May 2007 15:02:54 -0400 _session_id=LHeVQ6EgEg0YaiFxKDnAROgwuPYMECFi; > path=/; expires=Mon, 14 May 2007 15:04:04 -0400 > _session_id=DwErEBj6Jo4jxcQNpOTAgftmPeS7saC6; path=/; expires=Mon, 14 > May 2007 15:05:28 -0400 _session_id=iRu1mrhMovZCG41TidTboJ4PnCFM8cyA; > path=/; expires=Mon, 14 May 2007 15:43:12 -0400 > _session_id=ybOwsglrviARiViZaPiROjlKDlY3601j; path=/; expires=Mon, 14 > May 2007 15:50:06 -0400 _session_id=wyJIqI5OaSD9GWwWYCEoUxz8BQCUYYED; > path=/; expires=Mon, 14 May 2007 15:50:54 -0400 > _session_id=dSTGIJLx2ACDj0V5csNSYY9bUG8NbOfU; path=/; expires=Mon, 14 > May 2007 15:51:51 -0400 _session_id=o7G2Mtwnhoo7AEpEY85RU5maZEqikyOO; > path=/; expires=Mon, 14 May 2007 15:53:56 -0400 > _session_id=J7LpCVA0xt4VTAcZDn4JMK2YxZInmcty; path=/; expires=Mon, 14 > May 2007 15:57:13 -0400 _session_id=eIAxImptzZYBJdAmBetjYCh7lYQkqNHB; > path=/; expires=Mon, 14 May 2007 15:57:45 -0400 > _session_id=0fZwX7GQo7ELTKFDinUbXC100ERZrTjK; path=/; expires=Mon, 14 > May 2007 15:58:17 -0400 _session_id=otLv3y2IJ5FWMUMHNntu97ECP2s2vRuk; > path=/; expires=Mon, 14 May 2007 16:00:49 -0400 > _session_id=CLyCHhTCJxYRojwDP7XscKeIVfW5lIuQ; path=/; expires=Mon, 14 > May 2007 16:05:17 -0400" > > Cheers, > Bob > > ---- > Bob Hutchison -- tumblelog at <http:// > www.recursive.ca/so/> > Recursive Design Inc. -- <http://www.recursive.ca/> > xampl for Ruby -- <http://rubyforge.org/projects/ > xampl/> > > > > _______________________________________________ > Merb-devel mailing list > Merb-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/merb-devel-- Ezra Zygmuntowicz -- Lead Rails Evangelist -- ez at engineyard.com -- Engine Yard, Serious Rails Hosting -- (866) 518-YARD (9273)
Hi Ezra, Perfect! Wonderful! Thanks for that. Cheers, Bob On 30-Apr-07, at 6:13 PM, Ezra Zygmuntowicz wrote:> Hey Bob- > > On a little further investigation I discovered the problem. I had > made frozen CONSTS out of some parameters merbs uses over and over > and I went too far for the response headers hash. I just commited > the fix to trunk and bumped the version number to 0.3.1 and > released a gem. > > This will undoubtedly fix your problem. Thanks for the report. > > CHeers- > -Ezra > > > On Apr 30, 2007, at 1:30 PM, Bob Hutchison wrote: > >> Hi, >> >> I''m using Merb from the svn repository (revision 224, Merb 0.3.0). >> >> I am playing around trying to return static files. I''m opening a File >> and returning that from the controller. I''m setting the mime type and >> the content length (other wise nothing much happens). All requests >> for static content go through the same action of a particular >> controller. >> >> This is working with Firefox, Camino, and wget, or it appears to. And >> is quite quick. Nice. >> >> With Safari and other webkit based browsers (e.g. OmniWeb, Xyle >> Scope), I''m having problems loading html files. The html loads, and >> the two css files are being requested, but the activity browser in >> Safari show them to be the same size (.2k is correct for one of the >> css files, but the other is more like 7k). The big one is always >> requested first, the small second. If I hack at the html so that only >> one css file is requested, it gets that, but then messes up on the >> png files referred to by the css. Every time I refresh some other >> largely random mess up occurs. >> >> This is looking a lot like a threading issue of some kind. So I put a >> "sleep 1" in the controller and the messing up stops. Of course, that >> isn''t a real solution. >> >> ---- >> >> Another little problem (maybe), the Set-Cookie header is >> ''interesting'' and appears to be getting longer and longer. >> >> "Set-Cookie"=>" _session_id=ei5RSG1MemL6yeeIS7ELWrDh97YDUic5; path=/; >> expires=Mon, 14 May 2007 15:00:12 -0400 >> _session_id=42WRv32VAqxvdpexdz9CoyJMwPQaDBwB; path=/; expires=Mon, 14 >> May 2007 15:00:19 -0400 _session_id=SD2SXduFQcYjaEIMwMIgN2J94Yriz5qb; >> path=/; expires=Mon, 14 May 2007 15:00:57 -0400 >> _session_id=Gj2UTejMWhfH0idIGCuPIZPWQUnK7qfc; path=/; expires=Mon, 14 >> May 2007 15:02:54 -0400 _session_id=LHeVQ6EgEg0YaiFxKDnAROgwuPYMECFi; >> path=/; expires=Mon, 14 May 2007 15:04:04 -0400 >> _session_id=DwErEBj6Jo4jxcQNpOTAgftmPeS7saC6; path=/; expires=Mon, 14 >> May 2007 15:05:28 -0400 _session_id=iRu1mrhMovZCG41TidTboJ4PnCFM8cyA; >> path=/; expires=Mon, 14 May 2007 15:43:12 -0400 >> _session_id=ybOwsglrviARiViZaPiROjlKDlY3601j; path=/; expires=Mon, 14 >> May 2007 15:50:06 -0400 _session_id=wyJIqI5OaSD9GWwWYCEoUxz8BQCUYYED; >> path=/; expires=Mon, 14 May 2007 15:50:54 -0400 >> _session_id=dSTGIJLx2ACDj0V5csNSYY9bUG8NbOfU; path=/; expires=Mon, 14 >> May 2007 15:51:51 -0400 _session_id=o7G2Mtwnhoo7AEpEY85RU5maZEqikyOO; >> path=/; expires=Mon, 14 May 2007 15:53:56 -0400 >> _session_id=J7LpCVA0xt4VTAcZDn4JMK2YxZInmcty; path=/; expires=Mon, 14 >> May 2007 15:57:13 -0400 _session_id=eIAxImptzZYBJdAmBetjYCh7lYQkqNHB; >> path=/; expires=Mon, 14 May 2007 15:57:45 -0400 >> _session_id=0fZwX7GQo7ELTKFDinUbXC100ERZrTjK; path=/; expires=Mon, 14 >> May 2007 15:58:17 -0400 _session_id=otLv3y2IJ5FWMUMHNntu97ECP2s2vRuk; >> path=/; expires=Mon, 14 May 2007 16:00:49 -0400 >> _session_id=CLyCHhTCJxYRojwDP7XscKeIVfW5lIuQ; path=/; expires=Mon, 14 >> May 2007 16:05:17 -0400" >> >> Cheers, >> Bob >> >> ---- >> Bob Hutchison -- tumblelog at <http:// >> www.recursive.ca/so/> >> Recursive Design Inc. -- <http://www.recursive.ca/> >> xampl for Ruby -- <http://rubyforge.org/projects/ >> xampl/> >> >> >> >> _______________________________________________ >> Merb-devel mailing list >> Merb-devel at rubyforge.org >> http://rubyforge.org/mailman/listinfo/merb-devel > > -- Ezra Zygmuntowicz-- Lead Rails Evangelist > -- ez at engineyard.com > -- Engine Yard, Serious Rails Hosting > -- (866) 518-YARD (9273) > >---- Bob Hutchison -- tumblelog at <http:// www.recursive.ca/so/> Recursive Design Inc. -- <http://www.recursive.ca/> xampl for Ruby -- <http://rubyforge.org/projects/xampl/>