Skip to content
Commit 9469f2c0 authored by Rodrigo Bruno's avatar Rodrigo Bruno Committed by Pavel Emelyanov
Browse files

sk: Pre-read sock packets into buffer



 criu/sk-queue.c | 33 ++++++++++++---------------------
 1 file changed, 12 insertions(+), 21 deletions(-)

In order to prepare for the use of sockets to transfer the image files
lseek calls needs to be removed. For sk-queue, we now read the packet
data at the same time than the header. This has the disadvantage to
consume more memory between the image read and the packets restore, but
should hopefully be affordable.

Signed-off-by: default avatarRodrigo Bruno <rbruno@gsd.inesc-id.pt>
Signed-off-by: default avatarKaterina Koukiou <k.koukiou@gmail.com>
Signed-off-by: default avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 1510b248
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment