Commit 5226efe3 authored by Pavel Emelyanov's avatar Pavel Emelyanov

service: Handle client unexpected disconnection

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 4617b77e
......@@ -35,6 +35,12 @@ static int recv_criu_msg(int socket_fd, CriuReq **msg)
return -1;
}
if (len == 0) {
pr_info("Client exited unexpectedly\n");
errno = ECONNRESET;
return -1;
}
*msg = criu_req__unpack(NULL, len, buf);
if (!*msg) {
pr_perror("Failed unpacking request");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment