Add a server-side Luxi implementation
authorIustin Pop <iustin@google.com>
Mon, 13 Aug 2012 13:05:55 +0000 (15:05 +0200)
committerIustin Pop <iustin@google.com>
Mon, 13 Aug 2012 15:58:09 +0000 (17:58 +0200)
commit13f2321cc5e852dd2183faa1de1c5e14569a5599
tree39283df62db1b0d9a3bd21702b2fe417340e59e8
parente821050d86f7ee552304c551f6e2d22982a58de5
Add a server-side Luxi implementation

This is a trivial code change, but it allows us to finally test the
send-receive code on both client and server sides via a simple
in-process server.

The unittest works, but it won't handle timeouts very nicely; it will
wait until the actual Luxi timeout expires, instead of using much
shorter timeouts as we could in the same process.

Signed-off-by: Iustin Pop <iustin@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
htools/Ganeti/HTools/QC.hs
htools/Ganeti/Luxi.hs