« Previous Next »

Thread: FCGX_Accept_r() return on timeout

Last post 12-12-2008 2:52 AM by Mike Trader. 2 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (3 items)

Sort Posts:

  • 12-11-2008, 7:33 PM

    FCGX_Accept_r() return on timeout

     Under IIS 6

    FCGX_Accept_r() does not return -1

    http://forums.iis.net/t/1153693.aspx

    as the documentations says :

    http://www.fastcgi.com/devkit/doc/FCGI_Accept.3 

    RETURN VALUES
    0 for successful call, -1 for error (application should exit).

     

    so when the host  (IIS6.0) times out the FastCGI application my cleanup code is not executed.

    Does this work as advertised in IIS 7.0

    or do I need to find someone capable of writing a SIGTERM handler for windows so that

    libfcgi.dll will work properly?

     

     

     

  • 12-12-2008, 1:33 AM In reply to

    • ksingla
    • Top 10 Contributor
    • Joined on 06-13-2006, 11:02 PM
    • Redmond, WA
    • Posts 863

    Re: FCGX_Accept_r() return on timeout

    Mike,

    libfcgi is not written by IIS team or Microsoft. Its a third party implementation which can be used to write fastcgi apps. IIS fastcgi is the server side of fastcgi implementation and require a fastcgi protocol compliant client. We can help you running fastcgi application on a webserver but can't provide any help writing a fastcgi application.

    Thanks,
    Kanwal

    Follow me on twitter at http://twitter.com/kjsingla
  • 12-12-2008, 2:52 AM In reply to

    Re: FCGX_Accept_r() return on timeout

     This forum according to the IIS Team:

    "This is a good way to reach the IIS core team with FastCGI-related bug reports or feature requests."

    Kanwal,

    How do you expect the unsuspecting average developer to utilize FastCGI without using an API library like this?

    You promote FastCGI but you fail to mention that the critical link in the chain is unsupported!

    If its PHP or Ruby, you all fall over yourselves writing code and providing step by step instructions

    http://mvolo.com/blogs/serverside/archive/2007/02/18/10-steps-to-get-Ruby-on-Rails-running-on-Windows-with-IIS-FastCGI.aspx

     http://wiki.rubyonrails.org/rails/pages/HowToConfigureIIS7

    "Thanks to Luis Lavena and Rick James for providing updated compiled versions. Source can be found here. "

    "Much thanks to Ruslan Yakushev and Rick James from Microsoft for their help supporting the Rails community."

    Could us C/VB/FreeBasic developers get a little of that too?

     >can't provide any help writing a fastcgi application.

    I have written my application it runs fine. I just need the API to work as advertised!

    You have supported this API in this exact same dll before:

    http://forums.iis.net/p/1146857/1858802.aspx

    "We've tested this with libfcgi, so if you're using that it should just work.."

    So why can't I get a little help with this api?

    Where else could I go for help with this dll if not here, from these developers?

    Am I supposed to single handed, debug and re-write the libfcgi.dll API myself?

    Come on. That is a very time consuming task and the code is not well documented. I might as well just write the thing from scratch and do it right, but that is a non trivial task.

     If I had to stop working on my project to write the entire library for every functionality I need I would never get anything done.

    As developers we turn to MS to provide solutions, not stand on the opposite bank of the river and tell us its our problem to bridge the gap... unless of course FastCGI is designed for the PHP and RUBY crowd, in which case, say so.

    Otherwise I could really use some help.

    What would it take to get this C code patched to handle a SIGTERM from the host?

     

     

Page 1 of 1 (3 items)
Microsoft Communities