Skip to content

Commit e6219b0

Browse files
authored
doc: clarify the backlog option (#2367)
1 parent e1ff117 commit e6219b0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.markdown

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7989,14 +7989,14 @@ An optional Lua table can be specified as the last argument to this method to sp
79897989
* `backlog`
79907990
if specified, this module will limit the total number of opened connections
79917991
for this pool. No more connections than `pool_size` can be opened
7992-
for this pool at any time. If the connection pool is full, subsequent
7993-
connect operations will be queued into a queue equal to this option's
7994-
value (the "backlog" queue).
7992+
for this pool at any time. If `pool_size` number of connections are in use,
7993+
subsequent connect operations will be queued into a queue equal to this
7994+
option's value (the "backlog" queue).
79957995
If the number of queued connect operations is equal to `backlog`,
79967996
subsequent connect operations will fail and return `nil` plus the
79977997
error string `"too many waiting connect operations"`.
7998-
The queued connect operations will be resumed once the number of connections
7999-
in the pool is less than `pool_size`.
7998+
The queued connect operations will be resumed once the number of active
7999+
connections becomes less than `pool_size`.
80008000
The queued connect operation will abort once they have been queued for more
80018001
than `connect_timeout`, controlled by
80028002
[settimeouts](#tcpsocksettimeouts), and will return `nil` plus

0 commit comments

Comments
 (0)