monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] Random idea -- making ssh:// multi-user-friendly


From: Brian May
Subject: Re: [Monotone-devel] Random idea -- making ssh:// multi-user-friendly
Date: Mon, 20 Aug 2007 15:40:03 +1000
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

>>>>> "Nathaniel" == Nathaniel Smith <address@hidden> writes:

    Nathaniel> 07:20 <njs> you know what we should do?  when a server starts up 
in
    Nathaniel> stdio mode, it should first try to bind() to 
<db-name.mtn>.socket,
    Nathaniel> and if it succeeds, start serving like a daemon on that socket
    Nathaniel> while continuing to do the initial serve on stdio
    Nathaniel> 07:20 <njs> but if the bind() fails, then it should instead 
connect()
    Nathaniel> to that AF_UNIX socket, and just proxy its stdio to the resulting
    Nathaniel> socket.
    Nathaniel> 07:21 <njs> bam, multiple people can sync ssh:// to the same db 
at the
    Nathaniel> same time, no muss no fuss.
    Nathaniel> 07:21 <njs> and the daemon automatically runs only when needed.

Why not just:

check if server running
if not running
   fork server and listen to socket
connect to server

?

Seems cleaner to me, that having monotone guess that it should do if
bind fails.
-- 
Brian May <address@hidden>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]