package Nm6q_10;

import java.io.IOException;
import java.net.Socket;
import java.net.SocketTimeoutException;
import java.util.logging.Level;
import java.util.logging.Logger;
/* compiled from: Okio.kt */
/* loaded from: classes.dex */
public final class SI64pbG_23 extends Mqv2r_3 {
    public final Socket KQgRr5e_0;

    /* renamed from: KQgRr5e_0  reason: collision with other field name */
    public final Logger f345KQgRr5e_0;

    public SI64pbG_23(Socket socket) {
        FSaI4_7.Xgtqvk_8.QxJ9d_1.IFxWkV_5.QxJ9d_1(socket, "socket");
        this.KQgRr5e_0 = socket;
        this.f345KQgRr5e_0 = Logger.getLogger("okio.Okio");
    }

    @Override // Nm6q_10.Mqv2r_3
    /* renamed from: PGPF6hQ_2 */
    public void mo180PGPF6hQ_2() {
        try {
            this.KQgRr5e_0.close();
        } catch (AssertionError e) {
            if (YghfZG_14.KQgRr5e_0(e)) {
                Logger logger = this.f345KQgRr5e_0;
                Level level = Level.WARNING;
                logger.log(level, "Failed to close timed out socket " + this.KQgRr5e_0, (Throwable) e);
                return;
            }
            throw e;
        } catch (Exception e2) {
            Logger logger2 = this.f345KQgRr5e_0;
            Level level2 = Level.WARNING;
            logger2.log(level2, "Failed to close timed out socket " + this.KQgRr5e_0, (Throwable) e2);
        }
    }

    @Override // Nm6q_10.Mqv2r_3
    public IOException QxJ9d_1(IOException iOException) {
        SocketTimeoutException socketTimeoutException = new SocketTimeoutException("timeout");
        if (iOException != null) {
            socketTimeoutException.initCause(iOException);
        }
        return socketTimeoutException;
    }
}
