pls. help for adding another parameter to ngx_upstream_server

moto kawasaki moto at
Fri Nov 29 07:04:58 UTC 2013

Dear Mr. Dounin and list members,

Thank you very much for your suggestion, I finally made it work !!
Now we can write something like;

    http {
        proxy_setfib N;


    http {
            proxy_setfib N;

and the connections toward upstream server are setsockopt(SETFIB)-ed.

I need to test the code, but anyway I have confirmed in the most
simple configuration.
patch and configuration file attached.

Thank you very much.

Best Regards,

moto kawasaki <moto at>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: nginx.proxy_setfib.patch
Type: text/x-patch
Size: 5728 bytes
Desc: not available
URL: <>
-------------- next part --------------
daemon off;

error_log /home/moto/local/logs/nginx-error.log info;

events {

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

	access_log /home/moto/local/logs/nginx-access.log;

	proxy_connect_timeout  1;	# default=60 sec

#	proxy_setfib 5;

	upstream UPSTREAM {
		#proxy_setfib 5;
		server max_fails=3 fail_timeout=300;

	server {
		listen default_server bind setfib=5;

		proxy_setfib 5;

		location / {
			proxy_pass http://UPSTREAM;

More information about the nginx-devel mailing list