forked from mitre/HTTP-Proxy-Servlet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setting the read timeout in the RequestConfig is not enough. (mitre#150)
* Setting the read timeout in the RequectConfig is not enough. The read timeout must be set in the SocketConfig as well. Setting the read timeout only in the RequestConfig can cause hangs which could block the whole proxy forever. * SoTimeout cannot be negative -> -1 must be interpreted as 0 * add SocketConfig parameter to getProxyClient() Javadoc * refactor createHttpClient(RequestConfig, SocketConfig) to createHttpClient() and do not create a customized socket configuration if no read timeout is set * add change description for mitre#150
- Loading branch information
Showing
2 changed files
with
36 additions
and
10 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