Skip to content
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

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

Open
tedx opened this issue Dec 15, 2020 · 1 comment
Open

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

tedx opened this issue Dec 15, 2020 · 1 comment

Comments

@tedx
Copy link

tedx commented Dec 15, 2020

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?

@pohmelie
Copy link
Collaborator

  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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants