[PATCH] box/console: Disable setup of explicit eos in text sockets

Cyrill Gorcunov gorcunov at gmail.com
Mon Oct 7 10:25:49 MSK 2019


It is being found to cause problems with tarantoolctl,
so for now to not block testing lets zap setting up
explicit eos for text connections. I need more
time to investigate the problem.

Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
 src/box/lua/console.lua | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/box/lua/console.lua b/src/box/lua/console.lua
index 3bf6fe9f4..d4b141191 100644
--- a/src/box/lua/console.lua
+++ b/src/box/lua/console.lua
@@ -487,10 +487,10 @@ local function wrap_text_socket(connection, url, print_f)
     -- Prepare the connection: setup EOS symbol
     -- by executing the \set command on remote machine
     -- explicitly, and then setup a delimiter.
-    local cmd_set_output = output_to_cmd_string(current_output()) .. '\n'
-    if not conn:write(cmd_set_output) or not conn:read() then
-        conn:set_error()
-    end
+--    local cmd_set_output = output_to_cmd_string(current_output()) .. '\n'
+--    if not conn:write(cmd_set_output) or not conn:read() then
+--        conn:set_error()
+--    end
     local cmd_delimiter = 'require("console").delimiter("$EOF$")\n'
     if not conn:write(cmd_delimiter) or not conn:read() then
         conn:set_error()
-- 
2.20.1




More information about the Tarantool-patches mailing list