Forum: JRuby Jruby Rest Client with timeout

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ikai L. (Guest)
on 2009-03-27 02:10
(Received via mailing list)
Hey all,

Found out that Jruby won¹t time out requests correctly, so I wrapped
Apache¹s HttpClient:

http://github.com/ikai/jruby-rest-client/tree/master

I did the BARE minimum for my own requirements. If you¹d like to improve
this, fork it and send me a pull request. I¹ll make you a committer.

Ikai
Christian S. (Guest)
on 2009-03-27 02:14
(Received via mailing list)
Ikai L. wrote:
>
> Ikai
Give JRuby 1.2 a try, timeout.rb works much better (at least for me).
Nevertheless it's probably a good idea to use socket timeouts

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
Ikai L. (Guest)
on 2009-03-27 02:34
(Received via mailing list)
On an unrelated note I complained for a good ten minutes about how much
ceremony there was in doing a simple GET using HttpClient, then I saw
the
code for Net/HTTP and remembered that it was no happy meal, either.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
This topic is locked and can not be replied to.