« Previous Next »

Thread: FastCGI with Ruby on Rails - IIS 5.1 / IIS 6 - Http POST issue.

Last post 07-11-2007 3:31 PM by mvolo. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 06-14-2007, 9:30 PM

    • mspeight
    • Not Ranked
    • Joined on 06-15-2007, 1:26 AM
    • Posts 1

    FastCGI with Ruby on Rails - IIS 5.1 / IIS 6 - Http POST issue.

    I have got IIS and Multiple App's to talk using same technique’s as I used with isap_fcgi.dll, all works fine apart from an intermittent problem.

    After returning data from a POST, the rubyw.exe process is left in some funny state, and the next request causes rubyw.exe to exit.

    The same request may work 3 times, then crash on the 4th.

    Steps are as follows  POST ->  Returns a Redirect -> GET on Redirfect fails to return (ruby.exe exits) -> Browser has another go new instance of ruby.exe started and page returned

    Other Steps are POST -> Returns just render_text -> Another browser instance goes to url -> No page/error is returned (i.e. the new request got to rubyw but it crashed)

    I have duplicated this with a simple form, that posts and returns itself.

    It seems to be a timing thing, But I cant figure out the cause.

    PS: I have patched the cgi.rb (To remove the IIS reference, if you don’t you get random crashes ay any time)

    Anyone come across this before.

    ----------------- 

    By set-up is detailed here http://mspeight.blogspot.com/2007/05/how-to-run-multiple-rails-apps-under.html  (but uses fcgiext.dll instead of  isapi_fcgi.dll).  I did need to repatch the "AbstractRequest:request_uri" differently as this FastCGI does provide REQUEST_URI

  • 07-11-2007, 3:31 PM In reply to

    • mvolo
    • Top 25 Contributor
    • Joined on 09-17-2003, 9:48 AM
    • Philadelphia, PA
    • Posts 584
    • IIS MVPs

    Re: FastCGI with Ruby on Rails - IIS 5.1 / IIS 6 - Http POST issue.

    Murray,

    I was reading the linked setup description, and it appears that you are using Caraveo's FastCGI, so we cannot investigate the issues you are having with it.  However, I also saw other references to you using the IIS FastCGI, and that we can definitely help with.

    Do you have the same problems when using the IIS FastCGI to host RoR?  If you want, you can contact me directly via my blog,  http://mvolo.com/blogs/serverside/contact.aspx, with more details on the topic.

    I am also interested whether you have tried the multiple RoR applications setup with the IIS FastCGI, I've heard requests for this from others and would like to see if there are some things we can do to make it simpler.

    Thanks,

     

    This posting is provided "AS IS" with no warranties, and confers no rights.
Page 1 of 1 (2 items)
Microsoft Communities