Skip to content

Commit

Permalink
[mq]: pdp-smallfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
yminsky committed Mar 29, 2009
1 parent 0d2a057 commit 0ed7782
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dbMessages.ml
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ let rec unmarshal_msg cin =

let sockaddr_to_string sockaddr = match sockaddr with
Unix.ADDR_UNIX s -> sprintf "<ADDR_UNIX %s>" s
| Unix.ADDR_INET (addr,p) -> sprintf "<ADDR_INET %s:%d>" (Unix.string_of_inet_addr addr) p
| Unix.ADDR_INET (addr,p) -> sprintf "<ADDR_INET [%s]:%d>" (Unix.string_of_inet_addr addr) p

let msg_to_string msg =
match msg with
Expand Down
5 changes: 4 additions & 1 deletion membership.ml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ open Common
exception Bug of string
exception Lookup_failure of string
exception Malformed_entry of string
exception Empty_line

let membership = ref ([| |],-1.)

Expand All @@ -44,6 +45,7 @@ let local_recon_addr = Utils.unit_memoize local_recon_addr

let convert_address l =
try
if String.length l = 0 then raise Empty_line else
sscanf l "%s %s"
(fun addr service ->
if addr = "" || service = "" then failwith "Blank line";
Expand All @@ -58,6 +60,7 @@ let load_membership_file file =
let addr = convert_address line in
addr :: loop list
with
| Empty_line -> loop list
| End_of_file -> list
| Malformed_entry line ->
perror "Malformed entry %s" line;
Expand Down Expand Up @@ -206,7 +209,7 @@ let load_mailsync_partners fname =

let reload_mailsync_if_changed () =
let fname = Lazy.force Settings.mailsync_file in
let (mshp,old_mtime) = !membership in
let (msync,old_mtime) = !mailsync_partners in
match get_mtime fname with
None -> plerror 2 "%s"
("Failed to find mtime, can't decide whether to" ^
Expand Down
2 changes: 1 addition & 1 deletion reconMessages.ml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ let unmarshal_configdata cin =

let sockaddr_to_string sockaddr = match sockaddr with
Unix.ADDR_UNIX s -> sprintf "<ADDR_UNIX %s>" s
| Unix.ADDR_INET (addr,p) -> sprintf "<ADDR_INET %s:%d>"
| Unix.ADDR_INET (addr,p) -> sprintf "<ADDR_INET [%s]:%d>"
(Unix.string_of_inet_addr addr) p


Expand Down
6 changes: 3 additions & 3 deletions sks.pod
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,10 @@ The configuration file for your SKS server.

=item sksconf

logfile: log
membership_reload_interval: 1
hostname: keyserver.yourhost.com
from_addr: [email protected]
initial_stat:
hostname: keyserver.example.com
from_addr: [email protected]

=item Procmail

Expand Down

0 comments on commit 0ed7782

Please sign in to comment.