Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 3E587200CC9 for ; Mon, 17 Jul 2017 22:49:30 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3CC37165B8E; Mon, 17 Jul 2017 20:49:30 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 5AABA165B8C for ; Mon, 17 Jul 2017 22:49:29 +0200 (CEST) Received: (qmail 86440 invoked by uid 500); 17 Jul 2017 20:49:28 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 86427 invoked by uid 99); 17 Jul 2017 20:49:28 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Jul 2017 20:49:28 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id AC1321805CA for ; Mon, 17 Jul 2017 20:49:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.379 X-Spam-Level: *** X-Spam-Status: No, score=3.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_REPLY=1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id bCUd0GOrWBrT for ; Mon, 17 Jul 2017 20:49:25 +0000 (UTC) Received: from mail-it0-f42.google.com (mail-it0-f42.google.com [209.85.214.42]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 78D2F5F6C2 for ; Mon, 17 Jul 2017 20:49:24 +0000 (UTC) Received: by mail-it0-f42.google.com with SMTP id v202so56364316itb.0 for ; Mon, 17 Jul 2017 13:49:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=lWUyoVYXOZsoC6nmr+WqFopR9ImvwXI49/oSzvuP7nI=; b=IhTMqlrZV+1HmNuwIpUZaGLtYAuotC7NlUkrsrlBiQyzYnPMMpIyjX8e1FyP2zPtbi ku+l0YPW8PRFIIqgMDEPJCAAZhXrXslY0kAaB7Zlyv9vrBLpqm5XyEU6tlTNZdJR8EKc 4dkakbryh/Hfkjo1hweduZPTVsL6HJW5MZwMTA+yxdH+P+n4XLu1B/ayAuNs22zEw8tE D2XMNqT4diB769LllZgW4rKg23v5O3mCrW/bSJCKZxGFWu1hhmsT3kOkkRB9s/MtMkYG tQCrC5gPRRMkto5Sff159jjWghHmervxPXS86HoO4Xu2Fls2V4dqD4vyIZCTqi9T/7tB ZyDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=lWUyoVYXOZsoC6nmr+WqFopR9ImvwXI49/oSzvuP7nI=; b=i+5svPBeEIK6LaFd9L6CVQCxVFH3d+VhPn6+TcvlcmseR9eZ+9obdBqhr5Zf7Lxdx2 3OfIM2NR4+fE01dTn0MovebR08dkfg5fWhZCuWbUuQs84KfDJ3btTQse+OUq1K2q0Rvw +R4ucE4+Y/CALI9LFq9v9BJhAe76YityNVHGfmH8Xb941yohANfbeYVdwrJ2QBWYyYdv TGb6N4MIgf73ioCAwoMKY4WJ05mhEojPa4Ah1Ro556JNxGA1Q9CsngWkgnNys5YhQHB0 KQ/Tw15RVrnQmFuZknGomtsoeNnE1ICRkjugdeamb0AAbk5K9LiDuj8pnE5WwROiHcRj mv3A== X-Gm-Message-State: AIVw111lRSa3Fwzm6v16pF/J64GZsKjSkVfJbW6SwkmpTgstw62IXZ+F YEFfpjZmtwVtcg4lGhQi0csIuIqLWxWR X-Received: by 10.36.193.130 with SMTP id e124mr7035765itg.115.1500324556599; Mon, 17 Jul 2017 13:49:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.191.7 with HTTP; Mon, 17 Jul 2017 13:49:16 -0700 (PDT) In-Reply-To: <004001d2ff3b$cb26b2b0$61741810$@de> References: <004001d2ff3b$cb26b2b0$61741810$@de> From: Gintautas Grigelionis Date: Mon, 17 Jul 2017 22:49:16 +0200 Message-ID: Subject: Re: Proposed changes for IVY-735 - Ability to specify timeouts To: Ant Developers List Content-Type: multipart/alternative; boundary="94eb2c07d1ea3e98a4055489888f" archived-at: Mon, 17 Jul 2017 20:49:30 -0000 --94eb2c07d1ea3e98a4055489888f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Exactly what I had in mind =F0=9F=91=8D Gintas 2017-07-17 22:32 GMT+02:00 Jan Mat=C3=A8rne (jhm) : > Maybe you could set the timeout strategy globally: > /ivysettings/resolvers/@timeout-constraint > > > > read-timeout=3D"" /> > ... > > > > > > > > > Jan > > > > -----Urspr=C3=BCngliche Nachricht----- > > Von: jai.forums2013@gmail.com [mailto:jai.forums2013@gmail.com] > > Gesendet: Montag, 17. Juli 2017 06:56 > > An: dev@ant.apache.org > > Betreff: Re: Proposed changes for IVY-735 - Ability to specify timeouts > > > > I think, that's actually a good idea. Defining the timeout constraints > > separately as named constraints and then referencing them would allow > > reusing these values on whichever resolvers want to: > > > > > > > > > > > > > read-timeout=3D""> > > > > ... > > > > > > > > > > > > > > > > > > > > > > > > > > -Jaikiran > > > > > > On 14/07/17 10:33 PM, Gintautas Grigelionis wrote: > > > my =E2=82=AC.02 : currently, all resolvers only have artifact pattern= s as > > > child elements, so I'd rather have the timeouts as attributes that > > > might use references, similarly to cache managers or latest > > > strategies. That would imply a global default that may be overridden > > individually. > > > > > > Gintas > > > > > > 2017-07-14 13:34 GMT+02:00 : > > > > > >> https://issues.apache.org/jira/browse/IVY-735 is a feature request > > >> where the users have asked for relevant timeouts while dealing with > > >> downloads. A few weeks back we had a very brief discussion in an > > >> unrelated mail where it was proposed that we allow configuring these > > >> timeout all the way from ivy settings. > > >> > > >> I have an initial proposal/attempt to implement this feature. The > > >> initial changes are here in my personal repo[1]. It's a work in > > >> progress commit which sets up the necessary interfaces and the flow > > >> to show what I have in mind. Before proceeding further, I would like > > >> some inputs on whether this looks fine. Here's a summary of what the > > changes are going to be: > > >> > > >> - Each (dependency) resolver will have the ability to specify > > >> "timeout constraints"[2]. > > >> > > >> - These timeout constraints will be specified while defining the > > >> resolver in the ivy settings file. Imagine something like: > > >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > >> read-timeout=3D""/> > > >> > > >> > > >> > > >> .... > > >> > > >> - Each of the resolver will then use these timeout constraints (if > > >> specified) while resolving the module descriptor and downloading the > > >> artifacts and dealing with those resources. > > >> > > >> - The absence of the timeout constraints will let the resolvers > > >> behave the way they do currently > > >> > > >> The changes in the linked commit deprecate some APIs which weren't > > >> using timeouts and are replaced by APIs which pass along (an > > >> optional) TimeoutConstraints[2]. > > >> > > >> In summary, the change being proposed is that (dependency) resolvers > > >> have the ability to specify these timeout constraints and then use > > >> them while dealing with module descriptors and artifacts. One thing > > I > > >> have (to some extent intentionally) left out is the ability to > > define > > >> a global Ivy settings level or "all resolvers" level > > >> timeout-constraints. That's because I'm not too sure if it adds much > > >> value instead of defining it at individual resolver level. I'm > > however open to adding that support as well. > > >> > > >> The linked commit currently doesn't have the necessary support for > > >> parsing these additional XML elements, but if this whole approach > > >> looks fine, I will take this further and make sure things work as > > expected. > > >> > > >> [1] https://github.com/jaikiran/ant-ivy/commit/e501d9deca78db8b9 > > >> 34f8a2710ebcfeaeb1456c8 > > >> > > >> [2] https://github.com/jaikiran/ant-ivy/commit/e501d9deca78db8b9 > > >> 34f8a2710ebcfeaeb1456c8#diff-cd8ed454a52f4afa779574f5600a0ccb > > >> > > >> > > >> -Jaikiran > > >> > > >> > > >> -------------------------------------------------------------------- > > - > > >> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For > > additional > > >> commands, e-mail: dev-help@ant.apache.org > > >> > > >> > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional > > commands, e-mail: dev-help@ant.apache.org > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org > For additional commands, e-mail: dev-help@ant.apache.org > > --94eb2c07d1ea3e98a4055489888f--