﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
26	feature request about upstream module	lanshun zhou	somebody	"Just wonder if it's possible to change the http upstream module to a non-http module, so it will be easily used to implement load balancers for other protocols like dns_proxy/mysql_proxy that has nothing to do with http protocol. 

This module is used to choose a server from many, load balancing, fault tolerance and connection caching. All these features can be commonly used for all protocols. and the round robin, hash and keepalive upstream modules are useful and can be easily reused.

or just simply change prototype of ngx_http_upstream_init_peer_pt (actually it's almost done after this)
from 


{{{
typedef ngx_int_t (*ngx_http_upstream_init_peer_pt)(ngx_http_request_t *r,
    ngx_http_upstream_srv_conf_t *us);
}}}


to 


{{{
typedef ngx_int_t (*ngx_http_upstream_init_peer_pt)(ngx_http_upstream_t *upstream,
    ngx_http_upstream_srv_conf_t *us);
}}}


and add these fields to ngx_http_upstream_t

{{{
ngx_log_t          *log;
ngx_pool_t         *pool;
}}}


thanks~"	enhancement	closed	minor		nginx-module	1.1.x	wontfix	upstream module	zls.sogou@…		
