What happens when http accesses pending after nginx configuration under windows?

conf is configured as follows
security_ui is a static page, access is OK
http://safeguard corresponds to daemon
for example, when visiting http://localhost:8090/api/index?msisdn=bc65670205bff064f878d61afa2e98b5&channel=null
, sometimes pending, is very fast, sometimes it takes a long time to get a response
what"s going on?
ps: does not need port 8090 for nginx routing, it is no problem to use 8080 directly

upstream safeguard{
   server localhost:8080;
   -sharpserver 192.168.194.72:8013;
   -sharpip_hash;
}

server {
    listen       8090;
    server_name  localhost;

    -sharpcharset koi8-r;

    -sharpaccess_log  logs/host.access.log  main;

    location / {
        root   html;
        proxy_pass http://safeguard;
        index  index.html index.htm;
    }


    location /security_ui {
        root   D:\svn\safeGuard;
        index  index.html index.htm;
    }
    
    

nginx log log:

2018/03/27 19:25:04 [error] 11868-sharp9296: *192 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 /api/index/pIndex?msisdn=bc65670205bff064f878d61afa2e98b5&channel=null HTTP/1.1", upstream: "http://[::1]:8080/api/index/pIndex?msisdn=bc65670205bff064f878d61afa2e98b5&channel=null", host: "localhost:8090", referrer: "http://localhost:8090/security_ui/html/index.html?msisdn=bc65670205bff064f878d61afa2e98b5&channel=null"
2018/03/28 10:48:02 [error] 4092-sharp212: *7 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 /api/index/pIndex?msisdn=bc65670205bff064f878d61afa2e98b5&channel=null HTTP/1.1", upstream: "http://[::1]:8080/api/index/pIndex?msisdn=bc65670205bff064f878d61afa2e98b5&channel=null", host: "localhost:8090", referrer: "http://localhost:8090/security_ui/html/index.html?msisdn=bc65670205bff064f878d61afa2e98b5&channel=null"
Mar.03,2021

feeling has little to do with nginx configuration. Check the background code.


if you encounter similar problems, direct access to ningx is always around 100ms. Sometimes, if you go to nginx, you will not return until you reach the default setting of proxy_connect_timeout for 60s.


cannot find the cause. The temporary solution is to set the timeout to 3s.

proxy_connect_timeout 3s;

pengding status means that the back-end interface is not responding and is waiting. This should not be the front-end pot

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b37981-2b5f3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b37981-2b5f3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?