Skip to content

Commit

Permalink
change: fixed introduce version in doc. fixed a typo.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuizhuhaomeng committed Sep 3, 2021
1 parent b8f857c commit 6c329ac
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.markdown
Expand Up @@ -2617,7 +2617,7 @@ total number of connections to upstream servers that an nginx worker process
can open. The connections parameter should be set to a number small enough to
let upstream servers process new incoming connections as well.

This directive was first introduced in the `v0.10.19.5` release.
This directive was first introduced in the `v0.10.21` release.

[Back to TOC](#directives)

Expand Down
2 changes: 1 addition & 1 deletion doc/HttpLuaModule.wiki
Expand Up @@ -2204,7 +2204,7 @@ total number of connections to upstream servers that an nginx worker process
can open. The connections parameter should be set to a number small enough to
let upstream servers process new incoming connections as well.
This directive was first introduced in the <code>v0.10.19.5</code> release.
This directive was first introduced in the <code>v0.10.21</code> release.
== lua_need_request_body ==
Expand Down
7 changes: 3 additions & 4 deletions src/ngx_http_lua_balancer.c
Expand Up @@ -674,7 +674,8 @@ ngx_http_lua_balancer_free_peer(ngx_peer_connection_t *pc, void *data,

ngx_queue_remove(&item->queue);
ngx_queue_remove(&item->hnode);
ngx_queue_insert_head(&item->lscf->balancer.free, &item->queue);
ngx_queue_insert_head(&item->lscf->balancer.free,
&item->queue);
return;
}
}
Expand Down Expand Up @@ -813,7 +814,6 @@ ngx_http_lua_ffi_balancer_set_current_peer(ngx_http_request_t *r,
const u_char *host, size_t host_len,
char **err)
{
u_char *p;
ngx_url_t url;
ngx_http_lua_ctx_t *ctx;
ngx_http_upstream_t *u;
Expand Down Expand Up @@ -860,8 +860,7 @@ ngx_http_lua_ffi_balancer_set_current_peer(ngx_http_request_t *r,

if (ngx_parse_url(r->pool, &url) != NGX_OK) {
if (url.err) {
p = ngx_snprintf(errbuf, *errbuf_size, "%s", url.err);
*errbuf_size = p - errbuf;
*err = url.err;
}

return NGX_ERROR;
Expand Down
1 change: 1 addition & 0 deletions t/138-balancer.t
Expand Up @@ -489,6 +489,7 @@ retry counter: 5

--- error_log
set more tries: reduced tries due to limit
--- ONLY



Expand Down

0 comments on commit 6c329ac

Please sign in to comment.