Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support timeouts #80

Open
FroMage opened this issue Oct 21, 2013 · 11 comments
Open

Support timeouts #80

FroMage opened this issue Oct 21, 2013 · 11 comments
Assignees
Milestone

Comments

@FroMage
Copy link
Member

FroMage commented Oct 21, 2013

Apparently the Sardine impl does not support timeouts, if I try to publish to an HTTP server which hangs (see ceylon/ceylon-compiler#1364) it will never timeout. We need to find a way to make it timeout.

@quintesse
Copy link
Member

@quintesse quintesse self-assigned this Sep 24, 2014
quintesse added a commit that referenced this issue Sep 24, 2014
… sure it's used wherever we establish connections (including Sardine, but excluding Aether for now) #80
@quintesse
Copy link
Member

Ok, this should now mostly work. The only thing is Aether because I don't know how to pass that information to it. It has the workOffline setting, but I don't see anything related to connection timeouts. @alesj , do you have any ideas?

quintesse added a commit that referenced this issue Sep 24, 2014
… now that we have a `timeout` field in the class itself (#80)
@alesj
Copy link
Member

alesj commented Sep 25, 2014

@quintesse hmmm, it could be some Wagon setting, but no exact idea from my side.

@quintesse
Copy link
Member

@alesj You had some contact with the ShrinkWrap people, right? Couldn't you ask them if there is a way?

@alesj
Copy link
Member

alesj commented Sep 29, 2014

@kpiwko @aslakknutsen any idea if there is some timeout support in Aether?

@kpiwko
Copy link

kpiwko commented Sep 29, 2014

@alesj there is a request timeout (30min) and connection timeout (10s) in Aether. So it should timeout even with default settings.

It should be possible to pass -Daether.connector.connectTimeout and -Daether.connector.requestTimeout as JVM system properties. I can obviously expose this in configureResolver() API, just feature request is needed ;-)

@quintesse
Copy link
Member

Thanks @kpiwko . Where would I open that feature request? :)
And a question, is the "request timeout" the same thing as the "read timeout" for sockets? Or is a different thing?

@kpiwko
Copy link

kpiwko commented Sep 29, 2014

@kpiwko
Copy link

kpiwko commented Sep 29, 2014

(note Aether actually uses HttpClient 4.x, not 3.x)

@quintesse
Copy link
Member

Ok thanks! Issue created, see https://issues.jboss.org/browse/SHRINKRES-208

@quintesse
Copy link
Member

We could consider this closed because at least there shouldn't be any places anymore in the code that can cause hangups. But I'll reassign the issue to 1.2 so I remember to check the progress of the above feature request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants