C language FastCGI with Nginx

后端 未结 5 1420
挽巷
挽巷 2020-12-25 14:51

I am attempting to run a fastcgi app written in C language behind the Nginx web server. The web browser never finishes loading and the response never completes. I am not sur

5条回答
  •  旧时难觅i
    2020-12-25 15:26

    You need to call FCGI_Accept in the while loop:

    while(FCGI_Accept() >= 0)
    

    You have FCGI_Accept >= 0 in your code. I think that results in the address of the FCGI_Accept function being compared to 0. Since the function exists, the comparison is never false, but the function is not being invoked.

提交回复
热议问题