-
-
Notifications
You must be signed in to change notification settings - Fork 87
Client connection pooling #121
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: client.dns_resolver
Are you sure you want to change the base?
Conversation
f12647f to
073392a
Compare
| if h2_settings then | ||
| -- TODO: check (and possibly change on connection?) | ||
| return false | ||
| end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should check MAX_CONCURRENT_STREAMS
| end | ||
|
|
||
| if candidate.version < 2 then | ||
| -- Check if connection already in use (avoid pipelining) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TODO: check pipeline depth instead.
Also, might want to find shortest pipeline in the pool?
| end | ||
|
|
||
| -- Check to see if connection has been closed | ||
| local ok, err = candidate.socket:fill(1, 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Factor out into a "is alive" function. Can be reused for cleaning the pool
073392a to
3dfeaa0
Compare
5a80e99 to
6218598
Compare
WIP.
Will close #10