-
-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
call: _do_ssl_shutdown() -> shutdown(), err: Error([('SSL routines', '', 'shutdown while in init')]) #603
Comments
Well I just modified the module's source code and now figured out that the Exception was handled by |
I modified the source code to this:
And it raised an error without doubt, saying that the Error object does not have an attribute named "errno". However, I don't know when will the SSL.Error object have a attribute named this. I found that this exception class inherits from the built-in class of Exception, but it does not overload a new errno property in it, and this property is not owned by the built-in Exception class. In summary, since the |
Oh, I just looked up the code defining the other exceptions. It seems that the OSError class additionally defines the errno attribute. However, SSL.Error seems to be less closely related to this exception class if its subclass has no other part that deals with OSError. |
As stated in the title. I'm trying to enable FTP over TLS and have inherited the TLS_FTPHandler class when writing my own custom Handler.
However, this led to some hard-to-ignore but hard-to-identify causes of problems in the connection, leading to extremely high CPU usage and making the log file several gigabytes long (I turned on debug logging).
Recurrence:
Using client: FileZilla Pro
To start from the file itself, you should probably passAnd don't forget to install requirementsmain()
the absolute path to its project folder (I'm assuming you've cloned the repository, since this file needs to be backed by the database initialized by cfms_server.py in the root directory).(pip install -i requirements.txt)
Run
cfms_server.py
(in the root directory), and it will initialize itself. Meanwhile it will start the ftp service on port 5104 (by default).Open FileZilla and connect to the server (deafult address is localhost:5104), username:
e6222cd64d3da6e99f9da8bd2c125101945ed15fa4218d3956ac254a97e1a7b9519fec189e41f6c6367fd61fb11bd217a37cfb0135b745cd21992812cfa19517
, password:c54cc034130651c23416cd20f522fae855cc8fa869783b1798c0ad1d0d00d484
(per above)download a file. then close the connection from FileZilla.
And see the log file. Like this below:
I tried to find out what's going on, but I still have no idea after searching the Internet. The only thing I found is that this log seemed to be made by
handlers.py
(pyftpdlib), in line 3402:But I actually don't know which statement caught the exception.
The text was updated successfully, but these errors were encountered: