sftp plugin maximum connections

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Stefan2, white, sheep, Hacker

Post Reply
ardealul
Junior Member
Junior Member
Posts: 7
Joined: 2014-09-03, 12:06 UTC

sftp plugin maximum connections

Post by *ardealul » 2018-02-07, 10:47 UTC

Hi,

having an issue with the sftp plugin (old one - 1.4 - and new one - 2.0 - alike): it seems there is a maximum number of connections that you can have in the sftpplug.ini file. Seems to be 260 (including _Quick Connection). Any more and they don't get displayed in total commander.

As in you can add more than 259 (excluding _Quick Connection) but none will show in total commander.

Thanks.

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 36220
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2018-02-08, 10:28 UTC

There shouldn't be any hard limit for the server count. The limit seems to be this line in multiserver.cpp:
char serverlist[8192];

This is the length of the names of all connections combined. This gives an average length of 31 (including terminating 0). Try shortening the connection names a bit.
Author of Total Commander
http://www.ghisler.com

ardealul
Junior Member
Junior Member
Posts: 7
Joined: 2014-09-03, 12:06 UTC

Post by *ardealul » 2018-02-09, 07:42 UTC

absolutely brilliant :D. Never had thought of that. Works !

ardealul
Junior Member
Junior Member
Posts: 7
Joined: 2014-09-03, 12:06 UTC

Post by *ardealul » 2018-05-04, 11:52 UTC

did you get to fixing this issue ? I liked my full hostnames :)

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 36220
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) » 2018-05-06, 09:13 UTC

No, not yet, sorry. I will change it right away, so it will be in the next update.
Author of Total Commander
http://www.ghisler.com

Post Reply