mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-08-01 22:33:30 +00:00
When criu dumps a process with --tcp-established opt it locks the open tcp connections so that no packets from peer enters the stack, otherwise RST will be sent by a kernel causing the connection to fail. Post-start hook creates a connection with the test server and creates a background thread that stays alive for the duration of the test. This background thread sends data to the test server at three stages: - Pre-dump: Should send normally - Pre-restore: If connection is locked properly, packets will be dropped and TCP will just retry, which will eventually be sent when the process is restored and the network is unlocked. - Post-restore: Should send normally Data sent at the three stages is then checked at the server's side. v2: - remove unused imports and constants - delete sync file in wait_sync_file() instead of --clean v3: - add comments Co-developed-by: Radostin Stoyanov <rstoyanov@fedoraproject.org> Signed-off-by: Zeyad Yasser <zeyady98@gmail.com> |
||
|---|---|---|
| .. | ||
| compel | ||
| exhaustive | ||
| inhfd | ||
| javaTests | ||
| jenkins | ||
| others | ||
| pki | ||
| zdtm | ||
| .gitignore | ||
| abrt.sh | ||
| check_actions.py | ||
| crit-recode.py | ||
| empty-netns-prep.sh | ||
| groups.desc | ||
| inhfd.desc | ||
| Makefile | ||
| pycriu | ||
| show_action.sh | ||
| umount2.c | ||
| zdtm.desc | ||
| zdtm.py | ||
| zdtm_ct.c | ||
| zdtm_mount_cgroups | ||
| zdtm_umount_cgroups | ||