PonyPC
PonyPC
you can use this or WASPACE, but WASPACE does not support FMX.
on linux hangs on, on windows works well
I use threading ftpserver class to initialize. And I start the server in a thread, and then stop via close_all() in another thread. The close_all can be executed fully. But...
Code version is newest, Dec 1
``` class FtpServer(threading.Thread,metaclass=Singleton): authorizer = None server = None handler = None def __init__(self): self.closed = False self.running = True self.authorizer = DummyHashAuthorizer() dtp_handler = ThrottledDTPHandler dtp_handler.timeout = 60 dtp_handler.read_limit...
~~I try a temporary solution for this issue: in ioloop.py class Epoll() delete this line `self._poller.close()` in close() procedure.~~ still hang on sometimes
@muffl0n but how do you deal with forever running except manual shutdown?
@muffl0n Oh.... I catch you. I'll try your solution later....Thanks
@muffl0n after several hours test, it is seem that adding timeout parameter is working very well. thanks.
I don't know whether it does happen by using plain async server. Instead, I use a threaded server. I mean the serve_forever hangs unless specify a timeout, but close_all can...