How do I let nginx close the tcp connection instantly after the request is fulfilled?
I just found the solution:
location /ip/ { keepalive_timeout 0; }