aioftp
aioftp copied to clipboard
Run task on server when upload complete? xinetd run server?
Is there a way to extend the server to run a task when an upload has completed? Also I was considering running a server out of xinetd in which case stdin/stdout are the open socket to be used by the server. However the server doesn't appear to have a means of accepting an existing socket as an argument as does the asyncio server. Would it be possible to add this capability?
- You can subclass server and rewrite
stor
method as you need. - You can pass any arguments to
start
orrun
methods. All extra keyword arguments will be passed toasyncio.start_server
.