Re: NGINX Reverse Proxy terminate TCP connection after 5 minutes of inactivity

2024-02-26 Thread Kin Seng
netstat > command, > > it shows CLOSE_WAIT for the terminated session, it seems like close_wait > is > > the symbol that the closing is from external ( in this case client app is > > connect to nginx proxy), is this right? > > close_wait on client would indicate th

Re: NGINX Reverse Proxy terminate TCP connection after 5 minutes of inactivity

2024-02-21 Thread J Carter
connect to nginx proxy), is this right? close_wait on client would indicate that the other party initated connection close (sent the first FIN) - again, firewall makes me more skeptical, as it can have it's own timers for closing tcp connection / it's own logic. ___

Re: NGINX Reverse Proxy terminate TCP connection after 5 minutes of inactivity

2024-02-19 Thread Kin Seng
ut > > > that > > > > > the nginx is sending out the RST to the public server and then > send > > > FIN/ACK > > > > > (refer attached pcap picture) to client application. > > > > > > > > > > I have tried to enable kee

Re: NGINX Reverse Proxy terminate TCP connection after 5 minutes of inactivity

2024-02-19 Thread J Carter
c server and then send > > FIN/ACK > > > > (refer attached pcap picture) to client application. > > > > > > > > I have tried to enable keepalive related parameters as per the nginx > > > > config above and also check on the

Re: NGINX Reverse Proxy terminate TCP connection after 5 minutes of inactivity

2024-02-19 Thread Kin Seng
ck on the OS's TCP tunable and i could not > find > > > any related settings which make NGINX to kill the TCP connection. > > > > > > Anyone encountering the same issues? > > > > > The screenshot shows only 1 segment with FIN flag set too which is >

Re: NGINX Reverse Proxy terminate TCP connection after 5 minutes of inactivity

2024-02-19 Thread Kin Seng
Hi Roman, Thanks for the suggestion. Let me get the debugging log up and retest again. On Tue, Feb 20, 2024, 1:02 AM Roman Arutyunyan wrote: > Hi, > > On Mon, Feb 19, 2024 at 04:24:04PM +0800, Kin Seng wrote: > > My current nginx setup always kill the TCP connection aft

Re: NGINX Reverse Proxy terminate TCP connection after 5 minutes of inactivity

2024-02-19 Thread J Carter
the RST to the public server and then send FIN/ACK > > (refer attached pcap picture) to client application. > > > > I have tried to enable keepalive related parameters as per the nginx > > config above and also check on the OS's TCP tunable and i could not find > &g

Re: NGINX Reverse Proxy terminate TCP connection after 5 minutes of inactivity

2024-02-19 Thread Roman Arutyunyan
Hi, On Mon, Feb 19, 2024 at 04:24:04PM +0800, Kin Seng wrote: > My current nginx setup always kill the TCP connection after 5 minutes of > inactivity, i.e no transaction. > [From wireshark, nginx send RST to upstream server and then send FIN,ACK to > downstream client] This could b

Re: NGINX Reverse Proxy terminate TCP connection after 5 minutes of inactivity

2024-02-19 Thread Kin Seng
Please refer to the attachments for reference. On Mon, Feb 19, 2024 at 4:24 PM Kin Seng wrote: > My current nginx setup always kill the TCP connection after 5 minutes of > inactivity, i.e no transaction. > [From wireshark, nginx send RST to upstream server and then send FIN,ACK > t

NGINX Reverse Proxy terminate TCP connection after 5 minutes of inactivity

2024-02-19 Thread Kin Seng
My current nginx setup always kill the TCP connection after 5 minutes of inactivity, i.e no transaction. [From wireshark, nginx send RST to upstream server and then send FIN,ACK to downstream client] I have this setup which requires TLS1.2 connection connecting from my internal network [client

Re: Establish TCP connection to upstream when client connection made to listener

2020-03-21 Thread Phillip Odam
ooking for when a client establishes a TCP connection to an IP and port, that NGINX is listening on, that NGINX, without waiting on data being transmitted from the client to NGINX, would establish a TCP connection to the upstream. What happened when you tried it? A quick test here of "nc

Re: Establish TCP connection to upstream when client connection made to listener

2020-03-20 Thread Francis Daly
On Fri, Mar 20, 2020 at 09:57:40AM -0400, Phillip Odam wrote: Hi there, > I'm looking for when a client establishes a TCP connection to an IP and > port, that NGINX is listening on, that NGINX, without waiting on data being > transmitted from the client to NGINX, would establish a

Establish TCP connection to upstream when client connection made to listener

2020-03-20 Thread Phillip Odam
Hi I'm looking for when a client establishes a TCP connection to an IP and port, that NGINX is listening on, that NGINX, without waiting on data being transmitted from the client to NGINX, would establish a TCP connection to the upstream. If such a capability were to exist I'd ha

Re: gRPC reverse proxy closed tcp connection after 1000 rpc calls

2019-04-11 Thread hadals
server { listen 8080 http2 reuseport; server_name dev-status-service-svc-protocol-50051; access_log off; http2_max_requests 1000; http2_max_concurrent_streams 512; grpc_socket_keepalive on; location / {

RE: TCP connection limit on dynamic backend

2019-03-26 Thread R, Rajkumar (Raj)
Thanks for your quick response. Is there a way to delay the execution of limit_conn. Please suggest if there's a way forward on this. thanks, raj -Original Message- From: nginx On Behalf Of Roman Arutyunyan Sent: Tuesday, March 26, 2019 4:59 PM To: nginx@nginx.org Subject: Re

Re: TCP connection limit on dynamic backend

2019-03-26 Thread Roman Arutyunyan
Hi, On Tue, Mar 26, 2019 at 09:13:44AM +, R, Rajkumar (Raj) wrote: > Hi, > > Using nginx in TCP/Stream mode and would like to limit the number of active > connection to my backend server whereas the backend is resolved dynamically > based on the SNI header ($ssl_preread_server_name). But t

TCP connection limit on dynamic backend

2019-03-26 Thread R, Rajkumar (Raj)
Hi, Using nginx in TCP/Stream mode and would like to limit the number of active connection to my backend server whereas the backend is resolved dynamically based on the SNI header ($ssl_preread_server_name). But this does not allow any connections to the backend with below config. I see examp

Re: gRPC reverse proxy closed tcp connection after 1000 rpc calls

2019-03-07 Thread jetchars
Thanks! Indeed, `http2_max_requests` does close the tcp connection; BTW, I've confirmed that it is a bug of grpc-go. Thanks again! Posted at Nginx Forum: https://forum.nginx.org/read.php?2,283297,283304#msg-283304 ___ nginx mailing list

Re: gRPC reverse proxy closed tcp connection after 1000 rpc calls

2019-03-06 Thread Sergey Kandaurov
after 1000 requests been processed, > nginx will close the tcp connection, because I can find `TIME_WAIT` on the > nginx side. > - then gRPC client will report tens of thousands of `TransientFailure` at > same time > See http://ng

gRPC reverse proxy closed tcp connection after 1000 rpc calls

2019-03-06 Thread jetchars
ith gRPC client, after 1000 requests been processed, nginx will close the tcp connection, because I can find `TIME_WAIT` on the nginx side. - then gRPC client will report tens of thousands of `TransientFailure` at same time Posted at Nginx Forum: https://forum.nginx.org/read.php?2,283297,28

Re: identifying last request on a tcp connection.

2018-09-19 Thread Maxim Dounin
Hello! On Wed, Sep 19, 2018 at 02:19:53AM -0400, winger7 wrote: > I've been trying to identify the last HTTP request from a buffer of 10 > requests sent on a TCP connection in nginx. I've tried to use the header_in > field in the ngx_http_request_t by checking if th

identifying last request on a tcp connection.

2018-09-18 Thread winger7
I've been trying to identify the last HTTP request from a buffer of 10 requests sent on a TCP connection in nginx. I've tried to use the header_in field in the ngx_http_request_t by checking if the pos field for the header_in is equal to the last field. This condition holds true twice, o

Re: proxy_protocol not accepting TCP connection

2017-03-30 Thread Maxim Dounin
Hello! On Thu, Mar 30, 2017 at 08:27:15AM +, Kilian Ries wrote: > Hi, > > i configured my nginx with proxy_protocol, ssl and http2: > > server { > listen 443 ssl http2 proxy_protocol; > > … > } > > Now nginx is accepting proxy_protocol connections but not normal > TCP connections

proxy_protocol not accepting TCP connection

2017-03-30 Thread Kilian Ries
Hi, i configured my nginx with proxy_protocol, ssl and http2: server { listen 443 ssl http2 proxy_protocol; … } Now nginx is accepting proxy_protocol connections but not normal TCP connections. Is there any change to let nginx accept both connection types? I have a situation where are

Re: TCP Connection

2016-03-04 Thread Maxim Konovalov
Giulio, On 3/5/16 1:25 AM, Giulio Loffreda wrote: > Here is my nginx.conf and site config. After calling tcp > connection and getting http 400, no log is generated. > > I’m following > Let me re-phrase: this is not your _full_ nginx config. There are probably other files i

Re: TCP Connection

2016-03-04 Thread Валентин Бартенев
On Friday 04 March 2016 23:25:27 Giulio Loffreda wrote: > Here is my nginx.conf and site config. > After calling tcp connection and getting http 400, no log is generated. > > I’m following > > Thanks > > server { > listen 80; >

Re: TCP Connection

2016-03-04 Thread Giulio Loffreda
Here is my nginx.conf and site config. After calling tcp connection and getting http 400, no log is generated. I’m following Thanks server { listen 80; server_name apidvc.sparkgo.cc; access_log /var/log/nginx/myhost.com.access.log combined; root /home/spark

Re: TCP Connection

2016-03-04 Thread Валентин Бартенев
On Friday 04 March 2016 19:12:56 Giulio Loffreda wrote: > Still having no luck. > No log is generated. > > TCP connection has any relation to web socket support configuration ? > > this is my site config. > > server { > listen 80; > server_name my

Re: TCP Connection

2016-03-04 Thread steve
does /var/log/nginx exist, and it is writeable by the web server user? On 03/05/2016 07:12 AM, Giulio Loffreda wrote: Still having no luck. No log is generated. TCP connection has any relation to web socket support configuration ? this is my site config. server { listen 80

Re: TCP Connection

2016-03-04 Thread B.R.
You have been told to use the info error_log level, which is not set (defaults to error). ​Make sure no other error_log directive might overwrite this one.​ --- *B. R.* On Fri, Mar 4, 2016 at 7:12 PM, Giulio Loffreda wrote: > Still having no luck. > No log is generated. > > TCP co

Re: TCP Connection

2016-03-04 Thread Giulio Loffreda
Still having no luck. No log is generated. TCP connection has any relation to web socket support configuration ? this is my site config. server { listen 80; server_name myhost.com; access_log /var/log/nginx/myhost.com.log combined; error_log /var/log/nginx

Re: TCP Connection

2016-03-04 Thread Valentin V. Bartenev
On Friday 04 March 2016 17:41:42 Giulio Loffreda wrote: > Thank you for your answer. > > Here is my log after the request, my request, my response and my nginx.conf > > root@vps190138:~# cat /var/log/nginx-error.log > 2016/03/04 15:49:02 [notice] 8990#0: using the "epoll" event method > 2016/03/0

Re: TCP Connection

2016-03-04 Thread Giulio Loffreda
Thank you for your answer. Here is my log after the request, my request, my response and my nginx.conf root@vps190138:~# cat /var/log/nginx-error.log 2016/03/04 15:49:02 [notice] 8990#0: using the "epoll" event method 2016/03/04 15:49:02 [notice] 8990#0: nginx/1.8.1 2016/03/04 15:49:02 [notice] 8

Re: TCP Connection

2016-03-04 Thread Valentin V. Bartenev
On Friday 04 March 2016 17:20:18 Giulio Loffreda wrote: > Hi All, > > If I’m sending this email to wrong list, apologies and give me the good one. > > I have one embedded application which needs to connect via TCP and send an > HTTP request. > We run Nginx on Ubuntu 14.04. > > I can connect and

TCP Connection

2016-03-04 Thread Giulio Loffreda
Hi All, If I’m sending this email to wrong list, apologies and give me the good one. I have one embedded application which needs to connect via TCP and send an HTTP request. We run Nginx on Ubuntu 14.04. I can connect and persist, but once the packet is sent, I get HTTP 400 without any log and

Re: TCP Connection details

2015-06-06 Thread nginxsantos
Anyone knows about this? I feel it is very important to know the network delay between LB and the US servers Posted at Nginx Forum: http://forum.nginx.org/read.php?2,258958,259412#msg-259412 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.o

TCP Connection details

2015-05-18 Thread nginxsantos
I am using the Nginx as a reverse proxy and I want to find out the TCP connection information on both east and west bound connections. With the following params on the access log, I am able to get the info about the client TCP connection. Now, I want to find the RTT between Nginx and the backend