File 2509-ssh-added-message_queue_data-off_heap-to-spawn.patch of Package erlang

From 43dfbf7533ff9d176051231e52d308613a8d4bd1 Mon Sep 17 00:00:00 2001
From: Hans Nilsson <hans@erlang.org>
Date: Tue, 31 Jan 2017 13:59:19 +0100
Subject: [PATCH] ssh: added message_queue_data,off_heap to spawn

Seems to solve some test case problems when heavily loaded
---
 lib/ssh/src/ssh_connection_handler.erl | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/ssh/src/ssh_connection_handler.erl b/lib/ssh/src/ssh_connection_handler.erl
index ff94e5dfb..84adf952e 100644
--- a/lib/ssh/src/ssh_connection_handler.erl
+++ b/lib/ssh/src/ssh_connection_handler.erl
@@ -80,7 +80,11 @@
 		) -> {ok, pid()}.
 %% . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
 start_link(Role, Socket, Options) ->
-    {ok, proc_lib:spawn_link(?MODULE, init_connection_handler, [Role, Socket, Options])}.
+    {ok, proc_lib:spawn_opt(?MODULE, 
+                            init_connection_handler, 
+                            [Role, Socket, Options],
+                            [link, {message_queue_data,off_heap}]
+                           )}.
 
 
 %%--------------------------------------------------------------------
-- 
2.12.2

openSUSE Build Service is sponsored by