On an old version of okhttp, opening connection clears the thread interrupt flag silently. This is a workaround to reduce the effect of the bug. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=161784435