dativebase / old-pyramid

Online Linguistic Database (OLD)
http://www.onlinelinguisticdatabase.org/
8 stars 2 forks source link

Stop session lock_dir from growing unboundedly #53

Closed jrwdunham closed 2 years ago

jrwdunham commented 2 years ago

Fixes 52

Rationale

We want users to be able to log in and out of different OLD instances from a single Dative without getting blocked by 500 responses!!!

Considerations.

I added no new tests, but in-dev print statements show the original issue and how this fix resolved it.

Past bad behaviour:

  OLD Name: oldtests2
  session.lock_dir: oldtests
  New session lock_dir: /var/old/data/sessions/lock/oldtests/oldtests2/oldtests/oldtests2/oldtests/oldtests2
  OLD Name: oldtests
  session.lock_dir: oldtests2
  New session lock_dir: /var/old/data/sessions/lock/oldtests/oldtests2/oldtests/oldtests2/oldtests/oldtests2/oldtests

Current good behaviour:

  OLD Name: oldtests
  session.lock_dir: lock
  New session lock_dir: /var/old/data/sessions/oldtests
  OLD Name: oldtests2
  session.lock_dir: oldtests
  New session lock_dir: /var/old/data/sessions/oldtests2

Changes