alwayswill / google-api-java-client

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

Improve documentation about closing connections #251

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Users reported that their router was "hosed" when pushing their client 
application based on the library into production because the library was 
creating a new socket connection for every request.  It turns the problem was 
that they were not properly closing the connection for every request.  It 
appears to be worse with NetHttpTransport than ApacheHttpTransport, but either 
way it is a problem.  The fix is to be extra careful to always close the 
connection for both success and error responses, either by calling 
response.parseAs*(...) or response.ignore().

Since the library is working as intended, we should improve the documentation.  
Perhaps this can go into a new trouble-shooting section.

Original issue reported on code.google.com by yan...@google.com on 25 Jul 2011 at 11:07

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 16 Aug 2011 at 2:35

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 16 Aug 2011 at 2:36