jmpcn / openid4java

Automatically exported from code.google.com/p/openid4java
Apache License 2.0
0 stars 0 forks source link

ConsumerManager.setConnectTimeout() Not Work #150

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. New a ConsumerManager
2. Set connectTimeout property to some bigger value
3. Use the instance to create auth request, then the log will print default 
timeout 3000ms when setup connection

{{{
private ConsumerManager manager;

    public OpenIdConsumer() throws ConsumerException {
        this.manager = new ConsumerManager();
        this.manager.setConnectTimeout(300000);
        this.manager.setSocketTimeout(300000);
        this.manager.setAssociations(new InMemoryConsumerAssociationStore());
        this.manager.setNonceVerifier(new InMemoryNonceVerifier(60000));
        this.manager.getRealmVerifier().setEnforceRpId(false);
    }
}}}

{{{
2011-04-25 19:58:48,287 ["http-apr-8080"-exec-2] 
org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager
[DEBUG] Get connection: HttpRoute[{}->http://www.yahoo.com], timeout = 3000
}}}

Original issue reported on code.google.com by TangRui.cn on 25 Apr 2011 at 1:51

GoogleCodeExporter commented 8 years ago

Original comment by Johnny.B...@gmail.com on 1 Nov 2012 at 12:33