Commit 10343df6 authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

page-xref: set ret to zero if PS_IO_FLUSH completed successfully

Due to this issue the server initiates closing a connection and its
socket is transfered into the TIME_WAIT state, so the second run of
page-server fails with the error "the address is already in use".
Signed-off-by: 's avatarAndrew Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 3ea73d7f
......@@ -197,6 +197,7 @@ static int page_server_serve(int sk)
}
flushed = true;
ret = 0;
break;
}
default:
......
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