package g0; import c.d.b.a.a; import d0.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 // g0.b public IOException k(IOException iOException) { SocketTimeoutException socketTimeoutException = new SocketTimeoutException("timeout"); if (iOException != null) { socketTimeoutException.initCause(iOException); } return socketTimeoutException; } @Override // g0.b public void l() { try { this.m.close(); } catch (Exception e) { Logger logger = this.l; Level level = Level.WARNING; StringBuilder L = a.L("Failed to close timed out socket "); L.append(this.m); logger.log(level, L.toString(), (Throwable) e); } catch (AssertionError e2) { if (c.q.a.k.a.B(e2)) { Logger logger2 = this.l; Level level2 = Level.WARNING; StringBuilder L2 = a.L("Failed to close timed out socket "); L2.append(this.m); logger2.log(level2, L2.toString(), (Throwable) e2); return; } throw e2; } } }