Workaround or fix

This commit is contained in:
Tony Garnock-Jones 2012-01-08 14:12:17 -05:00
parent ad5ae04a43
commit c4db4c8d6d
2 changed files with 2 additions and 1 deletions

1
TODO
View File

@ -2,3 +2,4 @@ Running the server and test3_latency, and then starting and
interrupting test1_latency repeatedly, the server eventually corrupts
itself and will no longer let test1_latency bind and receive
messages. Sometimes test3_latency stops too.
[TENTATIVE FIX: see try/with in write_sexp in relay.ml]

View File

@ -61,7 +61,7 @@ let relay_main peername cin cout =
let mtx = Mutex.create () in
let write_sexp s =
Mutex.lock mtx;
output_sexp cout s;
(try output_sexp cout s with Sys_error _ -> ()); (* TODO: try removing this *)
Mutex.unlock mtx
in
let flush_control = Event.new_channel () in