diff options
author | wanghanlin <wanghanlin@corp.netease.com> | 2021-10-14 11:10:26 +0800 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2021-10-15 16:14:46 +0000 |
commit | 1eb8fea95f10c2ac5fa1d16c350323d9af8e03f1 (patch) | |
tree | c80a74ee84edae075b7c8cc474e72aee5d58fd54 /src | |
parent | 353575f604324154e1582364918ac10aea12dad4 (diff) |
vcl: narrow the scope of the restriction of vlsh_bit_val
The restriction of vlsh_bit_val only effect select/pselect, so move the
check to select/pselect function.
Type: fix
Signed-off-by: wanghanlin <wanghanlin@corp.netease.com>
Change-Id: I3585c83cfc2f0a2fd834450be650dccda67e3faa
Diffstat (limited to 'src')
-rw-r--r-- | src/vcl/ldp.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/vcl/ldp.c b/src/vcl/ldp.c index 5f1eeb9d540..2bdbe892d86 100644 --- a/src/vcl/ldp.c +++ b/src/vcl/ldp.c @@ -271,10 +271,11 @@ ldp_init (void) /* Make sure there are enough bits in the fd set for vcl sessions */ if (ldp->vlsh_bit_val > FD_SETSIZE / 2) { - LDBG (0, "ERROR: LDP vlsh bit value %d > FD_SETSIZE/2 %d!", + /* Only valid for select/pselect, so just WARNING and not exit */ + LDBG (0, + "WARNING: LDP vlsh bit value %d > FD_SETSIZE/2 %d, " + "select/pselect not supported now!", ldp->vlsh_bit_val, FD_SETSIZE / 2); - ldp->init = 0; - return -1; } } env_var_str = getenv (LDP_ENV_TLS_TRANS); |