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 da94e18
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.markdown
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
6 changes: 3 additions & 3 deletions src/ngx_http_lua_balancer.c
Original file line number Diff line number Diff line change
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 @@ -860,8 +861,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

0 comments on commit da94e18

Please sign in to comment.