Skip to content

Commit

Permalink
add desc in README.md
Browse files Browse the repository at this point in the history
Signed-off-by: tzssangglass <tzssangglass@gmail.com>
  • Loading branch information
tzssangglass committed Mar 5, 2024
1 parent ed6cce1 commit b3b6c74
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Table of Contents
* [resty.kong.tag.get](#restykongtagget)
* [resty.kong.log.set\_log\_level](#restykonglogset_log_level)
* [resty.kong.log.get\_log\_level](#restykonglogget_log_level)
* [resty.kong.peer_conn.get\_last\_peer\_connection\_cached](#restykongpeer_connget_last_peer_connection_cached)
* [License](#license)

Description
Expand Down Expand Up @@ -473,6 +474,22 @@ for the possible value of `level`.

[Back to TOC](#table-of-contents)

resty.kong.peer_conn.get\_last\_peer\_connection\_cached
----------------------------------
**syntax:** *resty.kong.peer_conn.get_last_peer_connection_cached()*

**context:** *balancer_by_lua*

**subsystems:** *http*

Retrieves whether the connection used in the previous attempt came from the upstream connection pool when the next_upstream retrying mechanism is in action.

Possible result are as follows:

- `0`: The connection was not reused from the upstream connection pool, it means that a new connection was created with the upstream in the previous attempt.
- `1`: The connection was reused from the upstream connection pool, it means that no new connection was created with the upstream in the previous attempt.

[Back to TOC](#table-of-contents)

License
=======
Expand Down

0 comments on commit b3b6c74

Please sign in to comment.