Menu

#1 Proper support of CGI headers for ISAPI_SCGI

Unscheduled
closed
nobody
None
Bug
2014-12-20
2012-09-19
No

Hello,
I'd like to use ISAPI_SCGI modue in front of some SCGI applications in order to run them with IIS,
my personal interest is CppCMS that has full support of SCGI api.
The problem that ISAPI_SCGI module does not parse Status headers and expect HTTP like response
which is not a part of CGI standard.
Is it possible to fix this please?
It seems that in "scgi_socket_handler" function under
case CONTEXT_STATE_READ_SCGI:
It should be split to two parts:
Before CR LF CR LF where headers send that can be parsed (I can
provide parsing code if needed) and proper headers could be
sent using ServerSupportFunction using HSE_REQ_SEND_RESPONSE_HEADER_EX callback.
It would be very valuable addon to the ISAPI_SCGI that would
allow to run many SCGI applications with it.
I myself not too faimilar with ISAPI programming so I'm afraid that it
would be too hard for me to write a proper patch,

  • Artyom Beilis

Discussion

  • Ashok P. Nadkarni

    Sorry for the long delay in response. Unfortunately, all my "open sourcing" time has been taken by other projects and to be honest, I was not sure anybody other than me was actually using isapi-scgi!
    I'll try to add this in the next week or two but no promises. I'm not sure exactly what you mean. Only the status line needs to be parsed, right? Not the entire set of headers?
    If you can provide a patch (or a code fragment) for parsing, it would help.
    /Ashok

     
  • Ashok P. Nadkarni

    Implemented in 0.8.0

     
  • Ashok P. Nadkarni

    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB