[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Monotone-devel] Re: usher on BSD
From: |
Lapo Luchini |
Subject: |
[Monotone-devel] Re: usher on BSD |
Date: |
Sat, 10 Oct 2009 20:28:51 +0200 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.5.0 |
Lapo Luchini wrote:
> Has anyone managed to use usher on any BSD host?
>
> I managed to compile it with the following patch, but is still doesn't
> work: it hangs on the first attempt of connections and must be then
> kill-9'ed.
ktrace/kdump shows this pattern:
...
40217 usher STRU struct sockaddr { AF_INET, 127.0.1.1:15024 }
40217 usher RET bind -1 errno 49 Can't assign requested address
...
40217 usher STRU struct sockaddr { AF_INET, 127.0.1.1:15025 }
40217 usher RET bind -1 errno 49 Can't assign requested address
...
40217 usher STRU struct sockaddr { AF_INET, 127.0.1.1:15026 }
40217 usher RET bind -1 errno 49 Can't assign requested address
...
From what I see in the README I guess those addresses are used to talk
with the spawned local mtn instances...
I guess it could be teached to use --stdio instead?
Or simply understand why 127.0.1.1 should fail...
While I search more on the issue, this workaround does it for me:
--- src/server.cc 55442d680c936f59823a36aea57a25443955a99b
+++ src/server.cc 4a9084560d33bb835a77c28ad4503a9768069887
@@ -24,8 +29,8 @@ int const maxport = 65000;
// ranges that dynamic (local) servers can be put on
int const minport = 15000;
int const maxport = 65000;
-int const minaddr[] = {127, 0, 1, 1};
-int const maxaddr[] = {127, 254, 254, 254};
+int const minaddr[] = {127, 0, 0, 1};
+int const maxaddr[] = {127, 0, 0, 1};
int currport = 0;
int curraddr[] = {0, 0, 0, 0};
--
Lapo Luchini - http://lapo.it/
“They that give up essential liberty to obtain a little temporary safety
deserve neither liberty nor safety.” (Benjamin Franklin)
signature.asc
Description: OpenPGP digital signature