From 10343df69683e104de0a494283bcc9276f62d71b Mon Sep 17 00:00:00 2001 From: Andrew Vagin Date: Fri, 9 Aug 2013 17:57:11 +0400 Subject: [PATCH] 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: Andrew Vagin Signed-off-by: Pavel Emelyanov --- page-xfer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/page-xfer.c b/page-xfer.c index 6098b926b..14e1740b6 100644 --- a/page-xfer.c +++ b/page-xfer.c @@ -197,6 +197,7 @@ static int page_server_serve(int sk) } flushed = true; + ret = 0; break; } default: