From time to time while running rsync command through wsl, it stacks, and I need to run it again. This only happens while I am connected to VPN. Not sure why this happens
RSYNC_COMMAND=avAXEWSlHhz
rsync -${RSYNC_COMMAND} --timeout=3 --chmod=ugo=rwX --delete --exclude-from="${EXCLUDE_FILES}" ${LOCAL_FOLDER} -e "ssh -i ${INDENTITY_KEY}" ${USERNAME}@${DEV_SERVER}:${REMOTE_FOLDER}
Output:
sending incremental file list
[generator] io timeout after 3 seconds -- exiting
rsync error: timeout in data send/receive (code 30) at io.c(204) [generator=3.1.3]
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
rsync error: error in rsync protocol data stream (code 12) at io.c(235) [sender=3.1.3]