readTimeout?

48 views
Skip to first unread message

Seth Carter

unread,
Sep 12, 2013, 5:16:51 PM9/12/13
to maven-down...@googlegroups.com
Hello,
Does this plugin respect readTimeout configurations in the settings.xml (per http://maven.apache.org/guides/mini/guide-http-settings.html) or would it need newer version of wagon?
I keep getting connection timeout at 30 minutes (wagon default) and I need to expand that to 60 minutes or more for 1.5 GB download across slow connection.
Thanks,
Seth

Mickael Istria

unread,
Sep 13, 2013, 2:59:51 AM9/13/13
to maven-down...@googlegroups.com
On 09/12/2013 11:16 PM, Seth Carter wrote:
Hello,
Hi,


Does this plugin respect readTimeout configurations in the settings.xml (per http://maven.apache.org/guides/mini/guide-http-settings.html) or would it need newer version of wagon?
I keep getting connection timeout at 30 minutes (wagon default) and I need to expand that to 60 minutes or more for 1.5 GB download across slow connection.
To be honest, I don't know ;) The code by itself doesn't have any reference to any timeout, and I don't know whether default usage of Wagon is enough to respect timeout settings.
You can have a look at the code and check whether it looks fine or not.
If you have tried it and found it actually does not work for download-maven-plugin, please open an enhancement request (and provide a pull request after that ;).

Cheers,
--
Mickael Istria
Eclipse developer at JBoss, by Red Hat
My blog - My Tweets

Seth Carter

unread,
Sep 13, 2013, 8:15:03 AM9/13/13
to maven-down...@googlegroups.com
First glance just at the pom and maybe updating to the latest wagon might do it.  I'll pull the project local and give it a go.  Troubleshooting timeouts is frustrating and time consuming!  I would use wagon directly but in addition to the slow connection it is also quite unstable so the retry your plugin offers is very useful too.
I'll let you know,
Seth

Seth Carter

unread,
Sep 23, 2013, 9:43:42 AM9/23/13
to maven-down...@googlegroups.com
Pull request added, its been working for me for about a week.  Nice to be able to set the readTimeOut as a maven prop since not all machines show difficulty in downloading the file.  I did notice that eclipse formatted the pom's so the diff on github is less than helpful.  The change amounted to adding a readTimeOut to WGet.doGet and including the wagon-provider-api 2.4 dependency in the pom.
Seth
Reply all
Reply to author
Forward
0 new messages