agent icon indicating copy to clipboard operation
agent copied to clipboard

Use Agent API for locking mirrors and known_hosts

Open DrJosh9000 opened this issue 1 year ago • 1 comments

If the Agent API experiment is enabled and working, then shell will now use it for locking instead of flock.

At least two reasons for this:

  1. The API socket can be bind-mounted into a container and "just work", whereas flock is harder to make work correctly across a container boundary.
  2. Locking and unlocking in the Agent API has no disk cost, so can be polled more frequently, so should be slightly faster.

DrJosh9000 avatar Jun 06 '23 05:06 DrJosh9000

Perhaps the choice of "lock providers" should be configurable?

Oooh. What about making it a hook?

DrJosh9000 avatar Jul 11 '23 01:07 DrJosh9000