This repository has been archived by the owner on Oct 15, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the swift code to use the split timeouts for receive and read.
Add a read timeout similar to the nifty code. There are now two timeouts: the receive timeout which is the overall time that a client is willing to wait for a response and the read timeout which is the maximum time that the client will wait for the server to make progress. And a couple of fixes to ensure that null values for any of the timeouts will not cause a NPE somewhere down the line.
- Loading branch information
Showing
11 changed files
with
136 additions
and
36 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Changes | ||
======= | ||
|
||
* 0.11.0 | ||
|
||
- Add a config option (thrift.client.receive-timeout) to ThriftClientConfig | ||
- Change default value for thrift.client.read-timeout from 1 minute to 10 seconds | ||
- Set default value for thrift.client.receive-timeout to 1 minute | ||
- Add constructors to ThriftClientManager that also take a receiveTimeout. | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
News | ||
==== | ||
|
||
* 0.11.0 | ||
|
||
Add support for Nifty 0.11.0 receiveTimeout. | ||
|
||
The nifty code now supports two timeouts: | ||
|
||
- receiveTimeout now reflects the amount of time that a client is | ||
willing to wait for the server complete a response. | ||
|
||
- readTimeout is the amount of a time that can pass without the server | ||
sending any data. | ||
|
||
Before 0.11.0, readTimeout had the semantics of receiveTimeout. | ||
|
||
The default value for readTimeout changed from 1 minute to 10 seconds. | ||
|
||
If a client configuration sets thrift.client.read-timeout, this setting | ||
must be changed to be thrift.client.receive-timeout. | ||
|
||
See the Nifty CHANGES.md file for more details. | ||
|
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
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
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