Welcome! Log In Create A New Profile

Advanced

Re: nginx on windows keeps hanging

May 19, 2012 03:04PM
I'm new to this, please bare with me...

I'm running my fastcgi script using this .bat file:

@ECHO OFF
D:\environments\php\php-cgi -b 127.0.0.1:9000 -c D:\environments\php\php.ini
ping 127.0.0.1 -n 1>NUL
echo .
echo .
echo .
EXIT


So for my upstream, I modified it to: (duplicated that line 4 times. will that work?)
@ECHO OFF
D:\environments\php\php-cgi -b 127.0.0.1:8004 -c D:\environments\php\php.ini
D:\environments\php\php-cgi -b 127.0.0.1:8005 -c D:\environments\php\php.ini
D:\environments\php\php-cgi -b 127.0.0.1:8006 -c D:\environments\php\php.ini
D:\environments\php\php-cgi -b 127.0.0.1:8007 -c D:\environments\php\php.ini
ping 127.0.0.1 -n 1>NUL
echo .
echo .
echo .
EXIT



and this is my latest nginx.conf:

http {
include mime.types;
default_type application/octet-stream;

sendfile off;

keepalive_timeout 0;

upstream myproject {
server 127.0.0.1:8004;
server 127.0.0.1:8005;
server 127.0.0.1:8006;
server 127.0.0.1:8007;
}
server
{
listen 3334;

server_name localhost;
root E:/emergency/HTML/;

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}

location ~ \.php$ {

fastcgi_pass myproject;
fastcgi_index index.php;
fastcgi_param PHP_FCGI_MAX_REQUESTS 0;
fastcgi_param PHP_FCGI_CHILDREN 100;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}


I get those error still, but I think they are less now. Still irritating though. I tried an ajax shoutbox script which fires requests every few seconds and opened up 4-5 browsers to see the reaction. I have upstream timeout errors. This time they haven't paralyze nginx but the errors appear and ajax requests pend without any response. Lots of same error on port 8006.

2012/05/19 23:22:31 [error] 1092#3704: *126 upstream timed out (10060: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond) while connecting to upstream, client: 127.0.0.1, server: localhost, request: "GET /index.php?action=ajaxrequest HTTP/1.1", upstream: "fastcgi://127.0.0.1:8006", host: "localhost:3334", referrer: "http://localhost:3334/index.php"
Subject Author Posted

nginx on windows keeps hanging

asmith May 18, 2012 01:35AM

Re: nginx on windows keeps hanging

itpp2012 May 18, 2012 07:32AM

Re: nginx on windows keeps hanging

asmith May 19, 2012 12:13AM

Re: nginx on windows keeps hanging

itpp2012 May 19, 2012 06:50AM

Re: nginx on windows keeps hanging

asmith May 19, 2012 03:04PM

Re: nginx on windows keeps hanging

itpp2012 May 19, 2012 04:33PM

Re: nginx on windows keeps hanging

asmith May 20, 2012 03:47AM

Re: nginx on windows keeps hanging

itpp2012 May 20, 2012 07:20AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 322
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready