aioftp icon indicating copy to clipboard operation
aioftp copied to clipboard

Run task on server when upload complete? xinetd run server?

Open tedx opened this issue 4 years ago • 1 comments

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?

tedx avatar Dec 15 '20 14:12 tedx

  1. You can subclass server and rewrite stor method as you need.
  2. You can pass any arguments to start or run methods. All extra keyword arguments will be passed to asyncio.start_server.

pohmelie avatar Dec 15 '20 14:12 pohmelie