Add timeout support for HTTP requests

Adds a new settings parameter, defaultTimeout, an integer number of
milliseconds.  This timeout is used for both connect, and during the
download.  So if, during the download, more than defaultTimeout
milliseconds have passed between packets, the download will
fail. Fixes IVY-735.

Signed-off-by: David Turner <dturner@twitter.com>
got it. it is indeed the default timeout

On Tue, Dec 2, 2014 at 1:05 PM, David Turner <notifications@github.com>
wrote:

> In src/java/org/apache/ivy/util/url/BasicURLHandler.java:
>
> > @@ -50,8 +50,10 @@ private HttpStatus() {
> >          }
> >      }
> >
> > +    private int defaultTimeout = 0;
>
> It's a default since we already have a param called timeout in
> getURLInfo(URL url, int timeout). We don't want to override that. We can't
> declare this as final because it gets set from a config file.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/twitter-forks/ant-ivy/pull/1/files#r21191193>.
>