Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-49314

Allow configurable readTimeout for jira-steps-plugin

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Minor Minor
    • jira-steps-plugin
    • None

      We have a particularly slow JIRA instance which often takes more than 10 seconds to respond to certain queries (such as reading the transitions metadata for an issue).

      Can i propose that the readTimeout on the http client for the jira-steps-plugin be configurable, in a similar way that the connection timeout currently is:

      Github link to code

       

      OkHttpClient httpClient = new OkHttpClient.Builder()
        .connectTimeout(jiraSite.getTimeout(), TimeUnit.MILLISECONDS)
        .readTimeout(10000, TimeUnit.MILLISECONDS).connectionPool(CONNECTION_POOL)
        .retryOnConnectionFailure(true).addInterceptor(new SigningInterceptor(jiraSite)).build();
      

       

       

            nrayapati Naresh Rayapati
            chriswhite199 Chris White
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: