Retry socket connection on syscall interrupt.