mirror of
https://github.com/9001/copyparty.git
synced 2025-10-05 10:49:30 +02:00
IdP: async reload; closes #114
whenever a new idp user is registered, up2k will continuously reload in the background until all users have been processed just like before, this blocks up2k uploads from each user until said user makes it into a reload, but as of now, reloads will batch and execute without interrupting read-access needs further testing before next release, probably some rough edges to sand down
This commit is contained in:
parent
6a8d5e1731
commit
44ee07f0b2
4 changed files with 109 additions and 80 deletions
|
@ -913,7 +913,7 @@ class AuthSrv(object):
|
|||
self._reload()
|
||||
return True
|
||||
|
||||
broker.ask("_reload_blocking", False).get()
|
||||
broker.ask("reload", False, True).get()
|
||||
return True
|
||||
|
||||
def _map_volume_idp(
|
||||
|
@ -2389,7 +2389,7 @@ class AuthSrv(object):
|
|||
self._reload()
|
||||
return True, "new password OK"
|
||||
|
||||
broker.ask("_reload_blocking", False, False).get()
|
||||
broker.ask("reload", False, False).get()
|
||||
return True, "new password OK"
|
||||
|
||||
def setup_chpw(self, acct: dict[str, str]) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue