[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-devel] Random idea -- making ssh:// multi-user-friendly
From: |
Nathaniel Smith |
Subject: |
[Monotone-devel] Random idea -- making ssh:// multi-user-friendly |
Date: |
Fri, 17 Aug 2007 07:31:41 -0700 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
07:20 <njs> you know what we should do? when a server starts up in
stdio mode, it should first try to bind() to <db-name.mtn>.socket,
and if it succeeds, start serving like a daemon on that socket
while continuing to do the initial serve on stdio
07:20 <njs> but if the bind() fails, then it should instead connect()
to that AF_UNIX socket, and just proxy its stdio to the resulting
socket.
07:21 <njs> bam, multiple people can sync ssh:// to the same db at the
same time, no muss no fuss.
07:21 <njs> and the daemon automatically runs only when needed.
Still have less security control than when running a real server
(users get some kind of raw write access to the database), and
probably have to tweak permissions on the db/db directory in just the
right way, but would be neat.
-- Nathaniel
--
Eternity is very long, especially towards the end.
-- Woody Allen
- [Monotone-devel] Random idea -- making ssh:// multi-user-friendly,
Nathaniel Smith <=