Having the same issue with com.jcraft.jsch.Session::connect, which ignores java.lang.InterruptedException and thus clearing the thread's interrupted flag. If instead set the flag back : Thread.currentThread().interrupt(); // set interrupt flag in the catch, the problem could be resolved.