52 lines
1.6 KiB
Java
52 lines
1.6 KiB
Java
package o;
|
|
|
|
import java.io.IOException;
|
|
import java.net.Socket;
|
|
import java.net.SocketTimeoutException;
|
|
import java.util.logging.Level;
|
|
import java.util.logging.Logger;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes.dex */
|
|
public final class giF extends ghX {
|
|
private final Socket d;
|
|
|
|
public giF(Socket socket) {
|
|
C14957gcv.e(socket, "");
|
|
this.d = socket;
|
|
}
|
|
|
|
@Override // o.ghX
|
|
protected final IOException newTimeoutException(IOException iOException) {
|
|
SocketTimeoutException socketTimeoutException = new SocketTimeoutException("timeout");
|
|
if (iOException != null) {
|
|
socketTimeoutException.initCause(iOException);
|
|
}
|
|
return socketTimeoutException;
|
|
}
|
|
|
|
@Override // o.ghX
|
|
protected final void timedOut() {
|
|
Logger logger;
|
|
Logger logger2;
|
|
try {
|
|
this.d.close();
|
|
} catch (AssertionError e) {
|
|
if (!C15160gio.a(e)) {
|
|
throw e;
|
|
}
|
|
logger2 = C15164gis.d;
|
|
Level level = Level.WARNING;
|
|
StringBuilder sb = new StringBuilder("Failed to close timed out socket ");
|
|
sb.append(this.d);
|
|
logger2.log(level, sb.toString(), (Throwable) e);
|
|
} catch (Exception e2) {
|
|
logger = C15164gis.d;
|
|
Level level2 = Level.WARNING;
|
|
StringBuilder sb2 = new StringBuilder("Failed to close timed out socket ");
|
|
sb2.append(this.d);
|
|
logger.log(level2, sb2.toString(), (Throwable) e2);
|
|
}
|
|
}
|
|
}
|