package com.google.ads.interactivemedia.pal;

import com.google.android.gms.internal.pal.g6;
import java.io.IOException;
import java.net.HttpURLConnection;
import java.net.URL;

/* JADX INFO: loaded from: classes2.dex */
final class zzo extends Thread {
    final /* synthetic */ String zza;

    public zzo(zzs zzsVar, String str) {
        this.zza = str;
    }

    @Override // java.lang.Thread, java.lang.Runnable
    public final void run() {
        String str = this.zza;
        try {
            g6 g6VarE = g6.e();
            try {
                HttpURLConnection httpURLConnectionG = g6VarE.g(new URL(str));
                httpURLConnectionG.setConnectTimeout(zzat.zzb);
                httpURLConnectionG.setReadTimeout(zzat.zzc);
                httpURLConnectionG.setDoInput(false);
                httpURLConnectionG.setUseCaches(false);
                httpURLConnectionG.getResponseCode();
                g6VarE.close();
            } catch (Throwable th) {
                try {
                    g6VarE.close();
                } catch (Throwable th2) {
                    try {
                        Throwable.class.getDeclaredMethod("addSuppressed", Throwable.class).invoke(th, th2);
                    } catch (Exception unused) {
                    }
                }
                throw th;
            }
        } catch (IOException unused2) {
        }
    }
}
