-
Notifications
You must be signed in to change notification settings - Fork 707
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FAB-3013] Reuse connections in the client
Load tests were failing with EOF error from http.Client. This is because lib.Client contructed transport and http.Client for every request. By default transport connection pools are maintained in the transport and are reused. This was not happening because lib.Client contructed new transport for each request. This change set fixes this problem by associating a http.Client object with lib.Client and reusing it for all requests. This will use one transport for all the requests there by reusing the connections pooled by the transport. Change-Id: I0a12946002ffc653237e0186dbc452684fc56a8a Signed-off-by: Anil Ambati <[email protected]>
- Loading branch information
Anil Ambati
committed
Aug 25, 2017
1 parent
e3a10f2
commit 940cc6a
Showing
4 changed files
with
80 additions
and
27 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
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