The technique described here may help with hard timeouts:

http://mrfeinberg.com/blog/archives/000016.html

On Fri, Jul 24, 2009 at 5:15 AM, Mariusz <mariusz...@gmail.com> wrote:

>
> Hi
>
> Could someone tell me how I can set timeout for
> OAuthClient.getRequestToken() in Java? I have already tried this:
>
> OAuthClient httpClient = new OAuthClient(new HttpClient4());
>
> HashMap<String,Integer> params = new HashMap<String,Integer>();
> params.put(HttpClient.CONNECT_TIMEOUT, 3*1000);
> params.put(HttpClient.READ_TIMEOUT, 6*1000);
> Set<Map.Entry<String, Integer>> setParams = params.entrySet();
>
> httpClient.getRequestToken(accessor, null, setParams);
>
> Unfortunately timeout is very long (longer than 6000 msecs) still. Can
> I set my timeout?
>
> Mariusz
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"OAuth" group.
To post to this group, send email to oauth@googlegroups.com
To unsubscribe from this group, send email to oauth+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/oauth?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to