Closed IamRichter closed 3 years ago
That's probably because you did something like FTPServer.max_cons = "20"
in your code. max_cons
should be an integer.
That's probably because you did something like
FTPServer.max_cons = "20"
in your code.max_cons
should be an integer.
You are absolutely correct. I complete forgot that at some point I decided to put max_cons inside a .ini file, and forgot that it would return a string. Sorry for waste your time, and thank you.
No problem. ;)
Hey, I found a small bug (maybe is not a bug, probably I did something wrong) where the server complains about the data type of a variable in 2 occasions. The first one:
I "fix" it by forcing the value to be a integer.
Similarly it happen again in line 281:
And again, I "fix" it again by forcing it to be a integer
My use of pyftpdlib is not really crazy stuff. I just extended the DummyAuthorizer to create a SQL authentication, and I also extended FTPHandler to log the uploaded files in SQL.