Gau-Yi / google-api-java-client

Automatically exported from code.google.com/p/google-api-java-client
0 stars 0 forks source link

HttpNetRequest should call setConnectTimeout() #57

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Version of google-api-java-client (e.g. 1.2.0-alpha)?

1.2.0-alpha

Java environment (e.g. Java 6, Android 2.2, App Engine 1.3.7)?

Java 6.

Describe the problem.

Line 74 of NetHttpRequest has this:

    int connectTimeout = transport.connectTimeout;
    if (connectTimeout >= 0) {
      connection.setReadTimeout(readTimeout);
    }

It should be this:

      connection.setConnectTimeout(connectTimeout);

How would you expect it to be fixed?

Original issue reported on code.google.com by yan...@google.com on 4 Nov 2010 at 2:09

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 5 Nov 2010 at 11:14

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 8 Jan 2011 at 6:41