Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix hang when validate task #56

Merged
merged 8 commits into from
Apr 8, 2019
Merged

Conversation

minidragon88
Copy link
Contributor

Problem:

  • When validate the task in jira, we try to ping the host. However, because of missing setConnectTimeout property for the HttpURLConnection then when request timeout, the plugin will hang forever.

Solution:

  • Using apache http client with proper timeout - connection timeout and socket time out to ping the host

Copy link
Contributor

@huylenq huylenq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I left some comments. Besides, I think you mean missing setSocketTimeout, not setConnectTimeout, right?

Copy link
Contributor

@huylenq huylenq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@minidragon88 minidragon88 merged commit c3ed36f into master Apr 8, 2019
@minidragon88 minidragon88 deleted the fix_hang_when_validate_task branch April 8, 2019 07:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants