Page 1 of 1

Server interface disconnect on large number of users.

Posted: 2016-02-12 20:49
by PolarbearDK
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

Re: Server interface disconnect on large number of users.

Posted: 2016-02-12 21:35
by botg
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.

Re: Server interface disconnect on large number of users.

Posted: 2016-02-13 13:58
by PolarbearDK
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.