i have some web servers around and to manage the cluster i sometimes use script which opens automatically the connections and syncs files to them using python scripts,
I've encountered a weird problem and i don't really know how to fix it..

to reproduce test case you should have a remote destination which doesn't do the connection immediately (not in LAN & nor in localhost )
and the connection should run without asking for password ( using key files)

and it will attempt to open 15 connections which almost immediately 5 tabs close themselves and only 10 connections stay open.
this problem also happen in terminal_xfce (which i prefer because I've found gnome-terminal a bit less stable)

seems that more than 10 concurrent opening connections are not allowed,

it seems that not more than 10 concurrent connections at the start are allowed but if i open 10 tabs, and wait for the connections to get started, then i can open another terminal with 10 tabs to same server.

(i want also to say that this test results are the same with IP TABLES firewalls disabled on both client and servers )

i have also to say that this issue is annoying especially on lsyncd and rsync executions while synchronizing multiple destinations on file system into the same server leads to unexpected results because connections are terminated by the OS , the terminal test-case is just the simpler to reproduce even if less problematic to handle.

2 Answers
2

If all your connections are going to be using scripted commands... why use the gnome-terminal tabs? You're using lots of resources which you really don't need, and which may be contributing to the limiting factors you're experiencing.

You should be able to get almost (for your purposes) unlimited number of connections if you'll let the system handle the connections instead of forcing gnome-terminal to step in.