From 4be1be776469d3aaa6a38df9422927b89cb03532 Mon Sep 17 00:00:00 2001
From: Konstantin Osipov <kostja@tarantool.org>
Date: Tue, 11 Jul 2017 20:49:27 +0300
Subject: [PATCH] replication: write replication exception to socket in
 blocking mode

Better safe than sorry.
@todo@: rewrite to send an error for reporting to iproto thread instead.

In scope of gh-2507.
---
 src/box/iproto.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/box/iproto.cc b/src/box/iproto.cc
index e50461ad5c..912b2a0902 100644
--- a/src/box/iproto.cc
+++ b/src/box/iproto.cc
@@ -1047,7 +1047,7 @@ tx_process_join_subscribe(struct cmsg *m)
 	} catch (SocketError *e) {
 		throw; /* don't write error response to prevent SIGPIPE */
 	} catch (Exception *e) {
-		iproto_write_error(con->input.fd, e, ::schema_version);
+		iproto_write_error_blocking(con->input.fd, e);
 	}
 }
 
-- 
GitLab