forked from nemccarthy/stash-pullrequest-builder-plugin
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
StashApiClient: Run HTTP requests in the main thread (#137)
* StashApiClient: Run HTTP requests in the main thread Using separate threads adds complexity for little benefit. Socket timeout should take care of slow HTTP connections. JENKINS-30558 doesn't provide any evidence that a separate timeout for requests was needed. The request timeout and the socket timeout were added in the same commit 80431f4. This change eliminates ExecutionException as an exception thrown by StashApiClient, replacing it with more specific exceptions. Update unit tests for the new behavior. * StashApiClient: Declare httpTask and thread where they are initialized
- Loading branch information
1 parent
dc86da7
commit bf508bf
Showing
2 changed files
with
69 additions
and
160 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
Oops, something went wrong.