alexandroid/decompiled/jadx/sources/org/apache/http/impl/DefaultHttpServerConnection.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

30 lines
1.3 KiB
Java

package org.apache.http.impl;
import java.io.IOException;
import java.net.Socket;
import org.apache.http.params.CoreConnectionPNames;
import org.apache.http.params.HttpParams;
import org.apache.http.util.Args;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
@Deprecated
/* loaded from: classes11.dex */
public class DefaultHttpServerConnection extends SocketHttpServerConnection {
@Override // org.apache.http.impl.SocketHttpServerConnection
public void bind(Socket socket, HttpParams httpParams) throws IOException {
Args.notNull(socket, "Socket");
Args.notNull(httpParams, "HTTP parameters");
assertNotOpen();
socket.setTcpNoDelay(httpParams.getBooleanParameter(CoreConnectionPNames.TCP_NODELAY, true));
socket.setSoTimeout(httpParams.getIntParameter(CoreConnectionPNames.SO_TIMEOUT, 0));
socket.setKeepAlive(httpParams.getBooleanParameter(CoreConnectionPNames.SO_KEEPALIVE, false));
int intParameter = httpParams.getIntParameter(CoreConnectionPNames.SO_LINGER, -1);
if (intParameter >= 0) {
socket.setSoLinger(intParameter > 0, intParameter);
}
if (intParameter >= 0) {
socket.setSoLinger(intParameter > 0, intParameter);
}
super.bind(socket, httpParams);
}
}