[CRIU] [PATCH 00/11] tcp: add support of half closed tcp sockets

Andrei Vagin avagin at openvz.org
Thu Nov 10 23:10:00 PST 2016


From: Andrei Vagin <avagin at virtuozzo.com>

A socket is in one of half-closed states, if it sent a fin packet
or it received a fin packet.

CRIU plays with fin packets to restore half-closed states too.

When we need to sent a fin packet from a socket, we can call
shutdown(SHUT_WR). When a fin packet has to be restore in
a received queue, criu generate a fin packet and send it via
a raw ip socket.

A raw packet is sent with the SOCCR_MARK mark to be able
to not block it.

-- 
2.7.4



More information about the CRIU mailing list