SublimeText2-FTPSync icon indicating copy to clipboard operation
SublimeText2-FTPSync copied to clipboard

Maximum number of connections

Open StuartMorris0 opened this issue 11 years ago • 12 comments

I am finding that FTPSync appears to open too many connections. I have seen previous issue referring to a similar issue - https://github.com/NoxArt/SublimeText2-FTPSync/issues/86

I am often getting this message:

FTPSync [default] > Login failed [Exception: 530 Sorry, the maximum number of clients (3) for this user are already connected.]

I have tried changing the max_threads to 1 in by Settings - Default file.

Here is my FTPSync.sublime-settings file which is for this specific project/folders.

{
    "default": {
        "host": "",
        "username": "",  /
        "password": "",
        "path": "/public_html/",

        "upload_on_save": true,
         "download_on_open": true,
         "max_threads" : 1,
         "debug_threads" : true
    }
}

What appears to happen is some of the files/folders are downloaded then the error is received:

FTPSync [default] > Login failed [Exception: 530 Sorry, the maximum number of clients (3) for this user are already connected.]
FTPSync > Exception in user code:
------------------------------------------------------------
Traceback (most recent call last):
  File ".\FTPSync.py", line 921, in makeConnection
  File ".\ftpsyncwrapper.py", line 331, in login
  File ".\ftpsyncwrapper.py", line 276, in retryingCommand
  File ".\ftpsyncwrapper.py", line 270, in call
  File ".\lib2\ftplib.py", line 385, in login
  File ".\lib2\ftplib.py", line 244, in sendcmd
  File ".\lib2\ftplib.py", line 219, in getresp
error_perm: 530 Sorry, the maximum number of clients (3) for this user are already connected.

StuartMorris0 avatar May 20 '14 10:05 StuartMorris0

+1

adis-io avatar Jun 26 '14 16:06 adis-io

Hi, I now have more time, I will look into this starting today or tomorrow, will let you know how it's progressing. Thank you for patience

NoxArt avatar Jun 26 '14 16:06 NoxArt

image

adis-io avatar Jun 26 '14 16:06 adis-io

I don't find that label absolutely unambiguous, but I assume you mean: the total number of connections to a specific server at any time should not exceed a certain number

NoxArt avatar Jun 26 '14 16:06 NoxArt

In short, my hosting provider's ftp allow me connect simultaneously 3 connections.

I don't know what the option max_threads is, but I think it's not related to my problem, because I set it to 3 and restarted sublime. The problem didn't go away, but when I set it to 1, it's solved my problem.

adis-io avatar Jun 26 '14 16:06 adis-io

Yes, I believe I understand. To clarify: max_threads is the number of connections for one transfer when using multi-threaded download/upload for faster transfer. The total number of connection can go higher by:

  • initiating more transfers at once
  • defining more sync targets in one .settings file to the same server
  • the action needed to issue more connections to acquire additional information
  • another action being initiated or triggered (often asynchronously) in the duration of the original transfer

And you are right that (because of the reasons mentioned above) it does not address your issue. I will limit the total number of connection at one time to the same server.

NoxArt avatar Jun 26 '14 16:06 NoxArt

Thank you! Look forward to updates

adis-io avatar Jun 26 '14 17:06 adis-io

Correct

On 26 Jun 2014, at 17:46, Jiří Petruželka [email protected] wrote:

I don't find that label absolutely unambiguous, but I assume you mean: the total number of connections to a specific server at any time should not exceed a certain number

— Reply to this email directly or view it on GitHub.

StuartMorris0 avatar Jun 26 '14 17:06 StuartMorris0

Was this issue ever resolved? Thanks

StuartMorris0 avatar Sep 11 '14 21:09 StuartMorris0

I'm working on it, but having little time during a week, hopefully will make some progress over the weekend

NoxArt avatar Sep 11 '14 21:09 NoxArt

hi, im having the same problem, there is any update about this?

djfaramir avatar Oct 22 '14 00:10 djfaramir

Hi! having the same issue right now. Is there any solution? Thx, Falk

daCyberpunk avatar Jun 22 '15 11:06 daCyberpunk