[CRIU] [PATCH 0/14 RFC] Introduce library for socket C/R

Andrew Vagin avagin at virtuozzo.com
Tue May 3 15:27:42 PDT 2016


On Mon, Apr 18, 2016 at 04:01:44PM +0300, Pavel Emelyanov wrote:
> Hi,
> 
> In CRIU we use the TCP repair feature to live migrate TCP connection,
> but this feature cannot be used w/o CRIU. So here's the libsoccr library
> that makes an attempt to make this feature use-able in another projects.
> 
> The idea of the libsoccr usage is
> 
> 1) pause the socket
> 2) get the connection info
> 3) get other socket parameters (address, peer, ports, options)
> 
> to dump the socket and
> 
> 1) create and pause the socket
> 2) restore socket's connection info (part 1)
> 3) restore socket's name and peer (bind and connect)
> 4) restore socket's connection into (part 2)
> 5) resume the socket
> 
> for restore. So the libsoccr handles steps 1 and 2 on dump and 1, 2, 4 and 5
> on restore. Stuff like address, peer and others are left for caller for
> simplicity, but, probably, these can be implemented as wrappers in libsoccr.
>

Reviewed-by: Andrew Vagin <avagin at virtuozzo.com>

but we need to solve a problem with LD_LIBRARY_PATH. I vote for a shell
wrapper, it's a common practic for this task.

Antother solution may be to link libsoccr staticaly if a special flag
(RELEASE) isn't specified.

Thanks,
Andrew

> Signed-off-by: Pavel Emelyanov <xemul at virtuozzo.com>
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu


More information about the CRIU mailing list