From jnewland at gmail.com Tue Nov 13 10:38:56 2007 From: jnewland at gmail.com (jesse newland) Date: Tue, 13 Nov 2007 10:38:56 -0500 Subject: [Swiftiply-users] Crashing of server on HEAD request (I think...) Message-ID: I've been able to replicate this issue: http://rubyforge.org/pipermail/swiftiply-users/2007-September/000063.html Here are the steps needed to replicate this issue with curl: http://pastie.caboo.se/private/xcywiv6c8tbt561qmstdvq I'd love to take a stab at writing a failing test for this bug, but I'm not able to get all of the tests to pass as is. Here are the failures: http://pastie.caboo.se/private/ur2gutfwvvdqhicljafw Regards- Jesse Newland --- http://soylentfoo.jnewland.com/ jnewland at gmail.com From ammon.christiansen at gmail.com Tue Nov 13 12:27:42 2007 From: ammon.christiansen at gmail.com (Ammon Christiansen) Date: Tue, 13 Nov 2007 09:27:42 -0800 Subject: [Swiftiply-users] Crashing of server on HEAD request (I think...) In-Reply-To: References: Message-ID: <5dc7d1c20711130927s2d96f4d2p195c7d84d65df9f6@mail.gmail.com> Some of the errors in your second pastie are because it is testing swiftiply in evented mode and isn't finding the eventmachine gem. Do you have the eventmachine gem installed? The bottom errors seem to replicate the server not available errors that you showed in the curl tests. I wonder if you limited your timeout to 2 or 3 instead of 30 in your swiftiply config if that would change anything. What exactly does that timeout parameter refer to? On Nov 13, 2007 7:38 AM, jesse newland wrote: > I've been able to replicate this issue: > > http://rubyforge.org/pipermail/swiftiply-users/2007-September/000063.html > > Here are the steps needed to replicate this issue with curl: > > http://pastie.caboo.se/private/xcywiv6c8tbt561qmstdvq > > I'd love to take a stab at writing a failing test for this bug, but > I'm not able to get all of the tests to pass as is. Here are the > failures: > > http://pastie.caboo.se/private/ur2gutfwvvdqhicljafw > > Regards- > > Jesse Newland > --- > http://soylentfoo.jnewland.com/ > jnewland at gmail.com > _______________________________________________ > Swiftiply-users mailing list > Swiftiply-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/swiftiply-users > From jnewland at gmail.com Tue Nov 13 12:54:58 2007 From: jnewland at gmail.com (jesse newland) Date: Tue, 13 Nov 2007 12:54:58 -0500 Subject: [Swiftiply-users] Crashing of server on HEAD request (I think...) In-Reply-To: <5dc7d1c20711130927s2d96f4d2p195c7d84d65df9f6@mail.gmail.com> References: <5dc7d1c20711130927s2d96f4d2p195c7d84d65df9f6@mail.gmail.com> Message-ID: eventmachine is installed: gem list eventmachine *** LOCAL GEMS *** eventmachine (0.9.0, 0.7.0) Ruby/EventMachine library >From http://swiftiply.swiftcore.org/documentation.html: The timeout is the number of seconds that Swiftiply will hold on to a browser's connection, waiting for a backend to take the connection and service it, before giving up and returning a 503 Server Unavailable error to the browser. The default is three seconds. If your web framework actions are slow, you may want to increase that number, but try to keep it as low as you can. I cranked this up to 30 for some long running actions in my app. Adjusting it to 3 and restarting Swiftiply has no effect on this error - the 503 is still returned after between 5-8 seconds. Regards- Jesse Newland --- http://soylentfoo.jnewland.com/ jnewland at gmail.com On 11/13/07, Ammon Christiansen wrote: > Some of the errors in your second pastie are because it is testing > swiftiply in evented mode and isn't finding the eventmachine gem. Do > you have the eventmachine gem installed? > > The bottom errors seem to replicate the server not available errors > that you showed in the curl tests. I wonder if you limited your > timeout to 2 or 3 instead of 30 in your swiftiply config if that would > change anything. What exactly does that timeout parameter refer to? > > On Nov 13, 2007 7:38 AM, jesse newland wrote: > > I've been able to replicate this issue: > > > > http://rubyforge.org/pipermail/swiftiply-users/2007-September/000063.html > > > > Here are the steps needed to replicate this issue with curl: > > > > http://pastie.caboo.se/private/xcywiv6c8tbt561qmstdvq > > > > I'd love to take a stab at writing a failing test for this bug, but > > I'm not able to get all of the tests to pass as is. Here are the > > failures: > > > > http://pastie.caboo.se/private/ur2gutfwvvdqhicljafw > > > > Regards- > > > > Jesse Newland > > --- > > http://soylentfoo.jnewland.com/ > > jnewland at gmail.com > > _______________________________________________ > > Swiftiply-users mailing list > > Swiftiply-users at rubyforge.org > > http://rubyforge.org/mailman/listinfo/swiftiply-users > > > _______________________________________________ > Swiftiply-users mailing list > Swiftiply-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/swiftiply-users > From pmurray at nevada.net.nz Sun Nov 18 16:31:58 2007 From: pmurray at nevada.net.nz (Philip Murray) Date: Mon, 19 Nov 2007 10:31:58 +1300 Subject: [Swiftiply-users] Swiftiply and (very) long URLs Message-ID: <1DCAECE5-BB86-4B31-8FDB-55360A385EA8@nevada.net.nz> Hi, I have an application that integrates with a credit card processing system, which unfortunately returns very very long (RFC breaking?) URLs, such as: http://server/promote/payment_completed/c19b6972f85d8d894f133d41e95112e0?result=4b ... [ 1985 characters long ] ....5bff9&userid=Blah I have Apache2.2 reverse proxying to Swiftiply, and when a request such as this comes in Apache just returns 502 Proxy Error. It seems Swiftiply just drops the request because the request is so long. Is there a way I can change the maximum limit for URLs in Swiftiply to support this? Cheers From wyhaines at gmail.com Sun Nov 18 17:08:51 2007 From: wyhaines at gmail.com (Kirk Haines) Date: Sun, 18 Nov 2007 15:08:51 -0700 Subject: [Swiftiply-users] Swiftiply and (very) long URLs In-Reply-To: <1DCAECE5-BB86-4B31-8FDB-55360A385EA8@nevada.net.nz> References: <1DCAECE5-BB86-4B31-8FDB-55360A385EA8@nevada.net.nz> Message-ID: On Nov 18, 2007 2:31 PM, Philip Murray wrote: > Hi, > > I have an application that integrates with a credit card processing > system, which unfortunately returns very very long (RFC breaking?) > URLs, such as: > > http://server/promote/payment_completed/c19b6972f85d8d894f133d41e95112e0?result=4b > ... [ 1985 characters long ] ....5bff9&userid=Blah > > I have Apache2.2 reverse proxying to Swiftiply, and when a request > such as this comes in Apache just returns 502 Proxy Error. > > It seems Swiftiply just drops the request because the request is so > long. Not intentionally. I will create a test case for this, duplicate it, and fix it. I am trying to get an update out tonight to fix a couple other bugs, so look for a patch tonight/tomorrow. Thanks! Kirk Haines From kasou.sk at gmail.com Mon Nov 19 08:17:39 2007 From: kasou.sk at gmail.com (Rastislav Kassak) Date: Mon, 19 Nov 2007 15:17:39 +0200 Subject: [Swiftiply-users] [swiftiply-users] switiply protocol Message-ID: <83835dd40711190517g6498824p1aa16650c66c373b@mail.gmail.com> Hello, Is there somewhere description of swiftiply backend protocol? I mean interface between swiftiply and backend servers? I haven't found anything on web, however I didn't examine gem sources a lot... I would like to experiment with alternative "switfiply like" proxy build on libevent https support and lua scripting language. I could be really interesting for embedded devices such as my OpenWRT router. Swiftiply/Ruby is just too heavy and resource hungry for these kind of devices. Thanks. RK From willemderu at gmail.com Tue Nov 20 15:50:48 2007 From: willemderu at gmail.com (Willem de Ru) Date: Tue, 20 Nov 2007 22:50:48 +0200 Subject: [Swiftiply-users] Swiftiply on Windows Message-ID: I am very excited about Swiftiply. It really looks impressive. I just hope that I can get it going on Windows :) Thanks Kirk for all the hard work. I do development on a Windows PC. (However, deployment would be on a Linux server.) I get the following error when running ruby setup.rb on Windows: ------------------------ Building extension in C:/Documents and Settings/Willem de Ru/My Documents/Downloads/RoR Stuff/swiftiply source code/swiftiply-0.6. 1.1/ext/fastfilereader with {:mkmf=>true}. checking for windows.h... no *** C:/Documents and Settings/Willem de Ru/My Documents/Downloads/RoR Stuff/swiftiply source code/swiftiply-0.6.1.1/ext/fastfilere ader/extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --srcdir=C:/swiftiply source code/swiftiply-0.6.1.1/ext/fastfilereader --curdir --ruby=c:/ruby/bin/ruby Installing Swiftcore Swiftiply ... mkdir -p c:/ruby/bin install -c -m 0755 bin/mongrel_rails c:/ruby/bin/mongrel_rails install -c -m 0755 bin/swiftiply c:/ruby/bin/swiftiply install -c -m 0755 bin/swiftiply_mongrel_rails c:/ruby/bin/swiftiply_mongrel_rails mkdir -p c:/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt install -c -m 0755 ext/fastfilereader/fastfilereaderext.so c:/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt/fastfilereaderext.so c:/ruby/lib/ruby/1.8/fileutils.rb:1200:in `stat': No such file or directory - ext/fastfilereader/fastfilereaderext.so (Errno::ENOE NT) from c:/ruby/lib/ruby/1.8/fileutils.rb:1200:in `lstat' from c:/ruby/lib/ruby/1.8/fileutils.rb:1178:in `stat' from c:/ruby/lib/ruby/1.8/fileutils.rb:1260:in `copy_file' from c:/ruby/lib/ruby/1.8/fileutils.rb:463:in `copy_file' from c:/ruby/lib/ruby/1.8/fileutils.rb:844:in `install' from c:/ruby/lib/ruby/1.8/fileutils.rb:1395:in `fu_each_src_dest' from c:/ruby/lib/ruby/1.8/fileutils.rb:1411:in `fu_each_src_dest0' from c:/ruby/lib/ruby/1.8/fileutils.rb:1393:in `fu_each_src_dest' ... 9 levels... from ./external/package.rb:663:in `each' from ./external/package.rb:663:in `run_tasks' from ./external/package.rb:89:in `setup' from setup.rb:13 ----------------- Has anybody managed to get Swiftiply going on Windows yet. (I am somewhat of a novice with the installation of gems, so I might be missing something very straightforward.) Thanks! Regards Willem de Ru From kasou.sk at gmail.com Wed Nov 21 14:15:05 2007 From: kasou.sk at gmail.com (Rastislav Kassak) Date: Wed, 21 Nov 2007 20:15:05 +0100 Subject: [Swiftiply-users] Swiftiply on Windows In-Reply-To: References: Message-ID: <83835dd40711211115x1312015dxcd2e02f6fde1606b@mail.gmail.com> I guess, it fails to build binary library fastfilereaderext.so. Maybe you don't have C build environment correctly set-up. But I don't use ruby on Windows, os I can't be helpful anymore. Mongrel also uses some binary extensions and those are available as separate packages pre-built for windows AFAIK, so maybe this is to only comfort way for Swiftiply, too. RK On 11/20/07, Willem de Ru wrote: > I am very excited about Swiftiply. It really looks impressive. I just > hope that I can get it going on Windows :) Thanks Kirk for all the > hard work. > > I do development on a Windows PC. (However, deployment would be on a > Linux server.) > > I get the following error when running ruby setup.rb on Windows: > > ------------------------ > > Building extension in C:/Documents and Settings/Willem de Ru/My > Documents/Downloads/RoR Stuff/swiftiply source code/swiftiply-0.6. > 1.1/ext/fastfilereader with {:mkmf=>true}. > checking for windows.h... no > *** C:/Documents and Settings/Willem de Ru/My Documents/Downloads/RoR > Stuff/swiftiply source code/swiftiply-0.6.1.1/ext/fastfilere > ader/extconf.rb failed *** > Could not create Makefile due to some reason, probably lack of > necessary libraries and/or headers. Check the mkmf.log file for more > details. You may need configuration options. > > Provided configuration options: > --with-opt-dir > --without-opt-dir > --with-opt-include > --without-opt-include=${opt-dir}/include > --with-opt-lib > --without-opt-lib=${opt-dir}/lib > --with-make-prog > --srcdir=C:/swiftiply source code/swiftiply-0.6.1.1/ext/fastfilereader > --curdir > --ruby=c:/ruby/bin/ruby > Installing Swiftcore Swiftiply ... > mkdir -p c:/ruby/bin > install -c -m 0755 bin/mongrel_rails c:/ruby/bin/mongrel_rails > install -c -m 0755 bin/swiftiply c:/ruby/bin/swiftiply > install -c -m 0755 bin/swiftiply_mongrel_rails > c:/ruby/bin/swiftiply_mongrel_rails > mkdir -p c:/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt > install -c -m 0755 ext/fastfilereader/fastfilereaderext.so > c:/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt/fastfilereaderext.so > c:/ruby/lib/ruby/1.8/fileutils.rb:1200:in `stat': No such file or > directory - ext/fastfilereader/fastfilereaderext.so (Errno::ENOE > NT) > from c:/ruby/lib/ruby/1.8/fileutils.rb:1200:in `lstat' > from c:/ruby/lib/ruby/1.8/fileutils.rb:1178:in `stat' > from c:/ruby/lib/ruby/1.8/fileutils.rb:1260:in `copy_file' > from c:/ruby/lib/ruby/1.8/fileutils.rb:463:in `copy_file' > from c:/ruby/lib/ruby/1.8/fileutils.rb:844:in `install' > from c:/ruby/lib/ruby/1.8/fileutils.rb:1395:in `fu_each_src_dest' > from c:/ruby/lib/ruby/1.8/fileutils.rb:1411:in `fu_each_src_dest0' > from c:/ruby/lib/ruby/1.8/fileutils.rb:1393:in `fu_each_src_dest' > ... 9 levels... > from ./external/package.rb:663:in `each' > from ./external/package.rb:663:in `run_tasks' > from ./external/package.rb:89:in `setup' > from setup.rb:13 > > ----------------- > > Has anybody managed to get Swiftiply going on Windows yet. (I am > somewhat of a novice with the installation of gems, so I might be > missing something very straightforward.) > > Thanks! > > Regards > Willem de Ru > _______________________________________________ > Swiftiply-users mailing list > Swiftiply-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/swiftiply-users > From bmoelk at brainendeavor.com Wed Nov 21 15:16:23 2007 From: bmoelk at brainendeavor.com (Brian Moelk) Date: Wed, 21 Nov 2007 15:16:23 -0500 Subject: [Swiftiply-users] Swiftiply on Windows In-Reply-To: References: Message-ID: <47449217.6080505@brainendeavor.com> I am on windows and I got it installed, however I'm not certain how stable it will be. I used the "VS.NET 2003 Command prompt" to run "gem install swiftiply", (has all the paths/environment settings needed to compile the native extension), however initially I ended up with: c:\ruby\lib\ruby\1.8\i386-mswin32\config.h(2) : fatal error C1189: #error : MSC version unmatch NMAKE : fatal error U1077: 'cl' : return code '0x2' In config.h the following is defined: #if _MSC_VER != 1200 #error MSC version unmatch #endif Commenting out the #error line makes it run through, however there could be some incompatibilities when I actually get swiftiply running. I believe 1200 is for Visual Studio 6, but I'm not 100% certain. If you like, I'll keep you posted. HTH, -Brian Willem de Ru wrote: > I am very excited about Swiftiply. It really looks impressive. I just > hope that I can get it going on Windows :) Thanks Kirk for all the > hard work. > > I do development on a Windows PC. (However, deployment would be on a > Linux server.) > > I get the following error when running ruby setup.rb on Windows: > > ------------------------ > > Building extension in C:/Documents and Settings/Willem de Ru/My > Documents/Downloads/RoR Stuff/swiftiply source code/swiftiply-0.6. > 1.1/ext/fastfilereader with {:mkmf=>true}. > checking for windows.h... no > *** C:/Documents and Settings/Willem de Ru/My Documents/Downloads/RoR > Stuff/swiftiply source code/swiftiply-0.6.1.1/ext/fastfilere > ader/extconf.rb failed *** > Could not create Makefile due to some reason, probably lack of > necessary libraries and/or headers. Check the mkmf.log file for more > details. You may need configuration options. > > Provided configuration options: > --with-opt-dir > --without-opt-dir > --with-opt-include > --without-opt-include=${opt-dir}/include > --with-opt-lib > --without-opt-lib=${opt-dir}/lib > --with-make-prog > --srcdir=C:/swiftiply source code/swiftiply-0.6.1.1/ext/fastfilereader > --curdir > --ruby=c:/ruby/bin/ruby > Installing Swiftcore Swiftiply ... > mkdir -p c:/ruby/bin > install -c -m 0755 bin/mongrel_rails c:/ruby/bin/mongrel_rails > install -c -m 0755 bin/swiftiply c:/ruby/bin/swiftiply > install -c -m 0755 bin/swiftiply_mongrel_rails > c:/ruby/bin/swiftiply_mongrel_rails > mkdir -p c:/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt > install -c -m 0755 ext/fastfilereader/fastfilereaderext.so > c:/ruby/lib/ruby/site_ruby/1.8/i386-msvcrt/fastfilereaderext.so > c:/ruby/lib/ruby/1.8/fileutils.rb:1200:in `stat': No such file or > directory - ext/fastfilereader/fastfilereaderext.so (Errno::ENOE > NT) > from c:/ruby/lib/ruby/1.8/fileutils.rb:1200:in `lstat' > from c:/ruby/lib/ruby/1.8/fileutils.rb:1178:in `stat' > from c:/ruby/lib/ruby/1.8/fileutils.rb:1260:in `copy_file' > from c:/ruby/lib/ruby/1.8/fileutils.rb:463:in `copy_file' > from c:/ruby/lib/ruby/1.8/fileutils.rb:844:in `install' > from c:/ruby/lib/ruby/1.8/fileutils.rb:1395:in `fu_each_src_dest' > from c:/ruby/lib/ruby/1.8/fileutils.rb:1411:in `fu_each_src_dest0' > from c:/ruby/lib/ruby/1.8/fileutils.rb:1393:in `fu_each_src_dest' > ... 9 levels... > from ./external/package.rb:663:in `each' > from ./external/package.rb:663:in `run_tasks' > from ./external/package.rb:89:in `setup' > from setup.rb:13 > > ----------------- > > Has anybody managed to get Swiftiply going on Windows yet. (I am > somewhat of a novice with the installation of gems, so I might be > missing something very straightforward.) > > Thanks! > > Regards > Willem de Ru > _______________________________________________ > Swiftiply-users mailing list > Swiftiply-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/swiftiply-users > From bmoelk at brainendeavor.com Wed Nov 21 16:51:46 2007 From: bmoelk at brainendeavor.com (Brian Moelk) Date: Wed, 21 Nov 2007 16:51:46 -0500 Subject: [Swiftiply-users] Swiftiply on Windows In-Reply-To: <47449217.6080505@brainendeavor.com> References: <47449217.6080505@brainendeavor.com> Message-ID: <4744A872.8020100@brainendeavor.com> Doesn't look good... :) I'll have to install VC 6 and see if that cleans up the error. >swiftiply -c swiftiplyconfig.yaml c:/ruby/lib/ruby/gems/1.8/gems/swiftiply-0.6.1.1/src/swiftcore/Swiftiply.rb:630: in `trap': unsupported signal SIGHUP (ArgumentError) from c:/ruby/lib/ruby/gems/1.8/gems/swiftiply-0.6.1.1/src/swiftcore/Swif tiply.rb:630:in `run' from c:/ruby/lib/ruby/gems/1.8/gems/eventmachine-0.8.1-i386-mswin32/lib/ eventmachine.rb:970:in `call' from c:/ruby/lib/ruby/gems/1.8/gems/eventmachine-0.8.1-i386-mswin32/lib/ eventmachine.rb:970:in `event_callback' from c:/ruby/lib/ruby/gems/1.8/gems/eventmachine-0.8.1-i386-mswin32/lib/ eventmachine.rb:221:in `run_machine' from c:/ruby/lib/ruby/gems/1.8/gems/eventmachine-0.8.1-i386-mswin32/lib/ eventmachine.rb:221:in `run' from c:/ruby/lib/ruby/gems/1.8/gems/swiftiply-0.6.1.1/src/swiftcore/Swif tiply.rb:629:in `run' from c:/ruby/lib/ruby/gems/1.8/gems/swiftiply-0.6.1.1/bin/swiftiply:139: in `run' from c:/ruby/lib/ruby/gems/1.8/gems/swiftiply-0.6.1.1/bin/swiftiply:149 from c:/ruby/bin/swiftiply:16:in `load' from c:/ruby/bin/swiftiply:16 Brian Moelk wrote: > I am on windows and I got it installed, however I'm not certain how > stable it will be. > > I used the "VS.NET 2003 Command prompt" to run "gem install swiftiply", > (has all the paths/environment settings needed to compile the native > extension), however initially I ended up with: > > c:\ruby\lib\ruby\1.8\i386-mswin32\config.h(2) : fatal error C1189: > #error : MSC version unmatch > NMAKE : fatal error U1077: 'cl' : return code '0x2' > > In config.h the following is defined: > #if _MSC_VER != 1200 > #error MSC version unmatch > #endif > > Commenting out the #error line makes it run through, however there could > be some incompatibilities when I actually get swiftiply running. I > believe 1200 is for Visual Studio 6, but I'm not 100% certain. > > If you like, I'll keep you posted. > > HTH, > -Brian From wyhaines at gmail.com Wed Nov 21 17:19:01 2007 From: wyhaines at gmail.com (Kirk Haines) Date: Wed, 21 Nov 2007 15:19:01 -0700 Subject: [Swiftiply-users] Swiftiply on Windows In-Reply-To: <4744A872.8020100@brainendeavor.com> References: <47449217.6080505@brainendeavor.com> <4744A872.8020100@brainendeavor.com> Message-ID: (accidentally sent this just to Brian) On Nov 21, 2007 2:51 PM, Brian Moelk wrote: > Doesn't look good... :) I'll have to install VC 6 and see if that > cleans up the error. > > >swiftiply -c swiftiplyconfig.yaml > > c:/ruby/lib/ruby/gems/1.8/gems/swiftiply-0.6.1.1/src/swiftcore/Swiftiply.rb:630: > in `trap': unsupported signal SIGHUP (ArgumentError) > from c:/ruby/lib/ruby/gems/1.8/gems/swiftiply-0.6.1.1/src/swiftcore/Swif > tiply.rb:630:in `run' Oh....that's a simple Ruby bug, I think. Windows doesn't do signals, and the code that sets up the signal handlers needs to be altered so that it deals with that. Kirk