2021-06-27 20:44:35 +00:00
|
|
|
package f0;
|
|
|
|
|
2021-10-19 23:48:27 +00:00
|
|
|
import c.d.b.a.a;
|
|
|
|
import c0.z.d.m;
|
|
|
|
import java.io.IOException;
|
|
|
|
import java.net.Socket;
|
|
|
|
import java.net.SocketTimeoutException;
|
|
|
|
import java.util.logging.Level;
|
|
|
|
import java.util.logging.Logger;
|
|
|
|
/* compiled from: JvmOkio.kt */
|
|
|
|
public final class w extends b {
|
|
|
|
public final Logger l = Logger.getLogger("okio.Okio");
|
|
|
|
public final Socket m;
|
|
|
|
|
|
|
|
public w(Socket socket) {
|
|
|
|
m.checkParameterIsNotNull(socket, "socket");
|
|
|
|
this.m = socket;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // f0.b
|
|
|
|
public IOException k(IOException iOException) {
|
|
|
|
SocketTimeoutException socketTimeoutException = new SocketTimeoutException("timeout");
|
|
|
|
if (iOException != null) {
|
|
|
|
socketTimeoutException.initCause(iOException);
|
|
|
|
}
|
|
|
|
return socketTimeoutException;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override // f0.b
|
|
|
|
public void l() {
|
2021-06-27 20:44:35 +00:00
|
|
|
try {
|
2021-10-19 23:48:27 +00:00
|
|
|
this.m.close();
|
|
|
|
} catch (Exception e) {
|
|
|
|
Logger logger = this.l;
|
|
|
|
Level level = Level.WARNING;
|
|
|
|
StringBuilder O = a.O("Failed to close timed out socket ");
|
|
|
|
O.append(this.m);
|
|
|
|
logger.log(level, O.toString(), (Throwable) e);
|
|
|
|
} catch (AssertionError e2) {
|
|
|
|
if (c.q.a.k.a.C(e2)) {
|
|
|
|
Logger logger2 = this.l;
|
|
|
|
Level level2 = Level.WARNING;
|
|
|
|
StringBuilder O2 = a.O("Failed to close timed out socket ");
|
|
|
|
O2.append(this.m);
|
|
|
|
logger2.log(level2, O2.toString(), (Throwable) e2);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
throw e2;
|
2021-06-27 20:44:35 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|