package ᨨ;

import java.io.IOException;
import java.net.Socket;
import java.net.SocketTimeoutException;
import java.util.logging.Level;
import java.util.logging.Logger;
import ඓ.K.K.K.C1293;

/* renamed from: ᨨ.ؿ  reason: contains not printable characters */
/* compiled from: Okio */
public final class C1474 extends C1470 {

    /* renamed from: ᕣ  reason: contains not printable characters */
    public final /* synthetic */ Socket f5493;

    public C1474(Socket socket) {
        this.f5493 = socket;
    }

    @Override // ᨨ.C1470
    /* renamed from: K  reason: contains not printable characters */
    public IOException m3693(IOException iOException) {
        SocketTimeoutException socketTimeoutException = new SocketTimeoutException("timeout");
        if (iOException != null) {
            socketTimeoutException.initCause(iOException);
        }
        return socketTimeoutException;
    }

    @Override // ᨨ.C1470
    /* renamed from: 㿎  reason: contains not printable characters */
    public void m3694() {
        try {
            this.f5493.close();
        } catch (Exception e) {
            Logger logger = C1486.f5520;
            Level level = Level.WARNING;
            StringBuilder r0 = C1293.m3416("Failed to close timed out socket ");
            r0.append(this.f5493);
            logger.log(level, r0.toString(), (Throwable) e);
        } catch (AssertionError e2) {
            if (C1486.m3742(e2)) {
                Logger logger2 = C1486.f5520;
                Level level2 = Level.WARNING;
                StringBuilder r02 = C1293.m3416("Failed to close timed out socket ");
                r02.append(this.f5493);
                logger2.log(level2, r02.toString(), (Throwable) e2);
                return;
            }
            throw e2;
        }
    }
}
