cancelKeepOpenDoor() closes the door when /allowed returns null (cancelled/expired holds now actually close)
background goroutine polls /allowed every 15s (tunable via KDOORPI_ALLOWED_POLL_INTERVAL)
keepDoorOpenLock mutex guards shared hold state
skip timer rebuild when the hold is unchanged (anti-thrash)
Files: godoor.go, keepopen.go.
Closes #11
- `cancelKeepOpenDoor()` closes the door when /allowed returns null (cancelled/expired holds now actually close)
- background goroutine polls /allowed every 15s (tunable via `KDOORPI_ALLOWED_POLL_INTERVAL`)
- `keepDoorOpenLock` mutex guards shared hold state
- skip timer rebuild when the hold is unchanged (anti-thrash)
Files: godoor.go, keepopen.go.
- cancelKeepOpenDoor() closes the door when /allowed returns null
- background goroutine polls /allowed every 15s (KDOORPI_ALLOWED_POLL_INTERVAL)
- keepDoorOpenLock mutex guards shared hold state
- skip timer rebuild when the hold is unchanged (anti-thrash)
You are not authorized to merge this pull request.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Closes #11
cancelKeepOpenDoor()closes the door when /allowed returns null (cancelled/expired holds now actually close)KDOORPI_ALLOWED_POLL_INTERVAL)keepDoorOpenLockmutex guards shared hold stateFiles: godoor.go, keepopen.go.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.