sftp plugin maximum connections

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

Moderators: white, Hacker, petermad, Stefan2

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

sftp plugin maximum connections

Post by *ardealul »

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: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

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
https://www.ghisler.com
ardealul
Junior Member
Junior Member
Posts: 7
Joined: 2014-09-03, 12:06 UTC

Post by *ardealul »

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 »

did you get to fixing this issue ? I liked my full hostnames :)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

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