nevermind, not reliable when rproxied

This commit is contained in:
ed 2022-05-01 22:35:34 +02:00
parent b50d090946
commit 0a1d9b4dfd
2 changed files with 1 additions and 5 deletions

View file

@ -245,11 +245,8 @@ class HttpCli(object):
self.dvol = self.asrv.vfs.adel[self.uname] self.dvol = self.asrv.vfs.adel[self.uname]
self.gvol = self.asrv.vfs.aget[self.uname] self.gvol = self.asrv.vfs.aget[self.uname]
# resend auth cookie if more than 1/3 of the lifetime has passed if pwd:
# (rate-limited to prevent thrashing browser state, not for performance)
if pwd and self.conn.pwd_cookie_upd < self.t0 - 20 * 60 * self.args.logout:
self.out_headerlist.append(("Set-Cookie", self.get_pwd_cookie(pwd)[0])) self.out_headerlist.append(("Set-Cookie", self.get_pwd_cookie(pwd)[0]))
self.conn.pwd_cookie_upd = self.t0
if self.is_rclone: if self.is_rclone:
uparam["raw"] = False uparam["raw"] = False

View file

@ -46,7 +46,6 @@ class HttpConn(object):
self.stopping = False self.stopping = False
self.nreq = 0 self.nreq = 0
self.nbyte = 0 self.nbyte = 0
self.pwd_cookie_upd = 0
self.u2idx = None self.u2idx = None
self.log_func = hsrv.log self.log_func = hsrv.log
self.lf_url = re.compile(self.args.lf_url) if self.args.lf_url else None self.lf_url = re.compile(self.args.lf_url) if self.args.lf_url else None