ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (IVY-735) Timeout should be able to be specified
Date Sat, 22 Jul 2017 07:25:00 GMT

    [ https://issues.apache.org/jira/browse/IVY-735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16097151#comment-16097151
] 

ASF GitHub Bot commented on IVY-735:
------------------------------------

Github user twogee commented on the issue:

    https://github.com/apache/ant-ivy/pull/54
  
    The code below apparently assumes that client 2.x might still be around; it is obsolete
and this is a perfect opportunity to remove it
    
    ```
        private HttpClientHelper getHttpClientHelper() {
            if (httpClientHelper == null) {
                // use commons httpclient 3.0 if available
                try {
                    HttpMethodBase.class.getMethod("getResponseContentLength");
                    httpClientHelper = new HttpClientHelper3x();
                    Message.verbose("using commons httpclient 3.x helper");
                } catch (SecurityException e) {
                    Message.verbose("unable to get access to getResponseContentLength of "
                            + "commons-httpclient HeadMethod. Please use commons-httpclient
3.0 or "
                            + "use ivy with sufficient security permissions.");
                    Message.verbose("exception: " + e.getMessage());
                    httpClientHelper = new HttpClientHelper2x();
                    Message.verbose("using commons httpclient 2.x helper");
                } catch (NoSuchMethodException e) {
                    httpClientHelper = new HttpClientHelper2x();
                    Message.verbose("using commons httpclient 2.x helper");
                }
            }
            return httpClientHelper;
        }
    
    ```


> Timeout should be able to be specified
> --------------------------------------
>
>                 Key: IVY-735
>                 URL: https://issues.apache.org/jira/browse/IVY-735
>             Project: Ivy
>          Issue Type: Improvement
>          Components: Core
>    Affects Versions: 2.0.0-beta-1
>            Reporter: Testo Nakada
>            Assignee: jaikiran pai
>         Attachments: 0001-Add-timeout-support-for-HTTP-requests.patch
>
>
> It's currently not possible to provide timeout for resolver. For example, yesterday ibiblio
is really slow. I waited almost forever just to know that there is something wrong with ibiblio.
It would be nice if I can specify timeout so that i can fail over to some other resolvers
in my chain resolver.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message