24 lines
775 B
Java
24 lines
775 B
Java
package com.tencent.wxop.stat;
|
|
|
|
import org.apache.http.HttpResponse;
|
|
import org.apache.http.impl.client.DefaultConnectionKeepAliveStrategy;
|
|
import org.apache.http.protocol.HttpContext;
|
|
|
|
/* loaded from: classes.dex */
|
|
class j extends DefaultConnectionKeepAliveStrategy {
|
|
final /* synthetic */ i a;
|
|
|
|
j(i iVar) {
|
|
this.a = iVar;
|
|
}
|
|
|
|
@Override // org.apache.http.impl.client.DefaultConnectionKeepAliveStrategy, org.apache.http.conn.ConnectionKeepAliveStrategy
|
|
public long getKeepAliveDuration(HttpResponse httpResponse, HttpContext httpContext) {
|
|
long keepAliveDuration = super.getKeepAliveDuration(httpResponse, httpContext);
|
|
if (keepAliveDuration == -1) {
|
|
return 30000L;
|
|
}
|
|
return keepAliveDuration;
|
|
}
|
|
}
|