But I am not sure about it, as we don’t have proxy enabled
Kong uses the proxy module to act as a proxy, so this could in fact affect the result. In order to include that variable in your nginx config, you can add this to your Kong config file:
nginx_http_proxy_ignore_client_abort=on
See the docs for more info about how to include specific Nginx directives in your Kong config.
After adding it, you will have to execute kong prepare and kong reload.
Notice that in the same SO thread you linked there is another anwer that could be happening as well: there is a person which had something before their NGINX instance (a load balancer) and it had a too small timeout.
Also, I would look at the logs closely to make sure the dropped requests are coming from real users and not from things like crawlers or bots testing your network - they can cancel requests immediately after making them. If that’s the case, these logs can be a good way to find them out. Reminder that Kong comes with a bot detection plugin that could potentially be useful to you.
Nope. Just some locale warning(which I suppose are harmless)
root@kong-mystaff:/usr/local/kong# kong prepare
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
root@kong-mystaff:/usr/local/kong# kong reload
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
Kong reloaded
root@kong-mystaff:/usr/local/kong# kong check
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LC_CTYPE = "UTF-8",
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
configuration at /etc/kong/kong.conf is valid
root@kong-mystaff:/usr/local/kong# kong check
configuration at /etc/kong/kong.conf is valid
root@kong-mystaff:/usr/local/kong# kong prepare
root@kong-mystaff:/usr/local/kong# kong reload
Kong reloaded
root@kong-mystaff:/usr/local/kong#
@kikito
After upgrading kong version to 0.14.0 the directive nginx_http_proxy_ignore_client_abort=on got added.
Also, I had to increase the ulimit to 4096 for the file uploads to work.
ulimit -n 4096
I am no longer getting client closed connection and file uploads are working fine now. Thank you so much for the help.