bigdata-mx / j-calais

j-calais a Java RESTful interface to the http://www.opencalais.com/ API
Apache License 2.0
0 stars 2 forks source link

READ_TIMEOUT connection param ignored #6

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
There's a bug in the source code that prevents READ_TIMEOUT parameter to be 
applied:

1. In the source from trunk:
/src/main/java/mx/bigdata/jcalais/rest/CalaisRestClient.java
2. Goto private post(...) method:

Find those lines:

    conn.setConnectTimeout(config.get(ConnParam.CONNECT_TIMEOUT));
    conn.setReadTimeout(config.get(ConnParam.CONNECT_TIMEOUT));

Should be:

    conn.setConnectTimeout(config.get(ConnParam.CONNECT_TIMEOUT));
    conn.setReadTimeout(config.get(ConnParam.READ_TIMEOUT));

Original issue reported on code.google.com by darek.ko...@gmail.com on 6 Aug 2012 at 1:45

GoogleCodeExporter commented 9 years ago
Thanks, I have updated the source code.

Original comment by elmer.garduno@gmail.com on 25 Oct 2012 at 4:43