From a84a77a4861c8fc1b0b6d3ec0931e83395cb34b5 Mon Sep 17 00:00:00 2001 From: Martin Sustrik Date: Sun, 29 Apr 2012 07:59:52 +0200 Subject: Fix TCP/IPC socket shutdown When socket in the process of asynchronous connect is being closed and the fact that there is no peer is found out at the same time close() may return ECONNRESET. This patch handles this situation decently. Signed-off-by: Martin Sustrik --- src/ipc_connecter.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ipc_connecter.hpp') diff --git a/src/ipc_connecter.hpp b/src/ipc_connecter.hpp index 2a874bc..e6c419d 100644 --- a/src/ipc_connecter.hpp +++ b/src/ipc_connecter.hpp @@ -81,7 +81,7 @@ namespace xs int open (); // Close the connecting socket. - int close (); + void close (); // Get the file descriptor of newly created connection. Returns // retired_fd if the connection was unsuccessfull. -- cgit v1.2.3