-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make HTTP transport API spec property
Right now Transport is created for each requests, which means that connection pooling is not used and on each request it creates new connection to the upstream server. This is differ from 2.3 behavior, which had global Transport for all APIs. During the 2.4 refactor it was changed to behavior described above. This change introduce transport caching, so it gets re-used between API calls. In addition, this is better than 2.3 approach, because each API can have different transport settings and timeouts, and now each API gets own transport.
- Loading branch information
Showing
2 changed files
with
7 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters