Server interface disconnect on large number of users.

Need help with FileZilla Server? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
User avatar
PolarbearDK
500 Syntax error
Posts: 12
Joined: 2014-09-16 13:30
First name: Philip
Last name: Hoppe
Location: Copenhagen, Denmark
Contact:

Server interface disconnect on large number of users.

#1 Post by PolarbearDK » 2016-02-12 20:49

Hi, I'm the author of Miracle.FileZilla.Api.

I've just added support for server version 0.9.54/55.

One of the integration test used to test the API is creating & deleting 100.000 random users.
This works for versions 0.9.48-0.9.53, but not for 0.9.54/55 which throws an exception: "An existing connection was forcibly closed by the remote host".

I've explored the limits, and it works for 50.000 users, but not for 60.000 users.
There are no errors in the server log.

If you want to use my API as a diagnostic tool, just run Miracle.FileZilla.Api.Samples

User avatar
botg
Site Admin
Posts: 32404
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse
Contact:

Re: Server interface disconnect on large number of users.

#2 Post by botg » 2016-02-12 21:35

There's a size limit for the amount of account data, it cannot exceed (2^24)-1 octets.

Since the password hash is now done using SHA512 and due to the inclusion of the salt, each individual account now needs more octets. 162 additional octets per account if I did guesstimate the math correctly.

User avatar
PolarbearDK
500 Syntax error
Posts: 12
Joined: 2014-09-16 13:30
First name: Philip
Last name: Hoppe
Location: Copenhagen, Denmark
Contact:

Re: Server interface disconnect on large number of users.

#3 Post by PolarbearDK » 2016-02-13 13:58

Octets... Have not heard that term in more than 25 years. :)

OK, then the mystery is solved.

A few comments:
  • 1. Return an error message about this limitation when it is hit. Please don't disconnect the user.
    2. One of the changes in 0.9.48 were to support more than 65535 users. This change is voided by the size limit.

Post Reply