package o;

import java.net.SocketTimeoutException;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class QF extends N9 {
    public final /* synthetic */ RF m;

    public QF(RF rf) {
        this.m = rf;
    }

    @Override // o.N9
    public final void j() {
        this.m.e(9);
        KF kf = this.m.b;
        synchronized (kf) {
            long j = kf.y;
            long j2 = kf.x;
            if (j < j2) {
                return;
            }
            kf.x = j2 + 1;
            kf.z = System.nanoTime() + 1000000000;
            kf.s.c(new IF(AbstractC2462sn.n(new StringBuilder(), kf.n, " ping"), kf, 0), 0L);
        }
    }

    public final void k() {
        if (i()) {
            throw new SocketTimeoutException("timeout");
        }
    }
}
