AndroidHttpClient. How do I set KeepAlive strategy?
What would be syntax to do that. It's not DefaultHttpClient, it's AndroidHttpClient.
I noticed some exceptions with broken pipes 开发者_C百科and I want to set connections to keep alive for 10-20 seconds.
HttpParams httpParams = httpClient.getParams();
httpParams.setIntParameter(CoreConnectionPNames.SO_TIMEOUT, <Timeout in milliseconds>);
精彩评论