Navigation Menu

Skip to content

Commit

Permalink
downstream_max of 0 means unlimited
Browse files Browse the repository at this point in the history
Change-Id: Ie96773eea36983fb7a3d546f0a7b4105d54cd968
Reviewed-on: http://review.membase.org/3582
Reviewed-by: Steve Yen <steve.yen@gmail.com>
Tested-by: Steve Yen <steve.yen@gmail.com>
  • Loading branch information
steveyen committed Nov 8, 2010
1 parent ec495d2 commit 72bd456
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cproxy.c
Expand Up @@ -772,7 +772,8 @@ void cproxy_add_downstream(proxy_td *ptd) {
assert(ptd != NULL);
assert(ptd->proxy != NULL);

if (ptd->downstream_num < ptd->downstream_max) {
if (ptd->downstream_max == 0 ||
ptd->downstream_num < ptd->downstream_max) {
if (settings.verbose > 2) {
moxi_log_write("cproxy_add_downstream %d %d\n",
ptd->downstream_num,
Expand Down

0 comments on commit 72bd456

Please sign in to comment.