gigi81 / sharpfastcgi

C# fastcgi protocol implementation plus shome usage examples. A good example on how to self-host your web application without the need of iis or mono.
MIT License
32 stars 15 forks source link

Wierd behavior under nginx & mono #1

Closed ghost closed 12 years ago

ghost commented 12 years ago

I wrote a barebones app using this library and used nginx on OSX Lion to interface with it. When I use Chrome to invoke my code the browser waits a long time for a response. The browser then gets the response if I kill my test app, almost as if the request has not been ended. However, it should be as I just copied the response code given in the repo example.

What is your method for testing with a vanilla web server (no ASP)?

ghost commented 12 years ago

My bad - user error!

gigi81 commented 12 years ago

Glad you found yourself a solution. I didn't expected someone started using this code so soon. I will put some more documentation and examples when I will have the time. If you have a configuration example for ngnix (that is what I'm using for the test now on windows) or any suggestion it will be appreciated.

ghost commented 12 years ago

I'm not ignoring you - I've just been too busy to write back!

It was really easy to setup in nginx, I'll send you the piece of config tomorrow although I'll probably switch over to lighthttpd as my scenario requires unbuffered transfer (for http streaming). Apparently nginx buffers most if not all of the data to be sent by the fastcgi server before it forwards the data on to the http client :/

I liked using your lib because it was nice and simple - thanks!

Sent from my iPad

On Apr 30, 2012, at 4:58 AM, Luigi Grilli reply@reply.github.com wrote:

Glad you found yourself a solution. I didn't expected someone started using this code so soon. I will put some more documentation and examples when I will have the time. If you have a configuration example for ngnix (that is what I'm using for the test now on windows) or any suggestion it will be appreciated.


Reply to this email directly or view it on GitHub: https://github.com/gigi81/sharpfastcgi/issues/1#issuecomment-5415917