Skip to content

Commit

Permalink
SET_CONFIG doesn't generate a response so send a follow-up message which
Browse files Browse the repository at this point in the history
does generate a response to test whether the packet stream is still in-sync.

Signed-off-by: David Scott <dave.scott@eu.citrix.com>
  • Loading branch information
David Scott committed Sep 23, 2010
1 parent 69e810d commit af752a9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test.ml
Expand Up @@ -97,5 +97,9 @@ let _ =
ignore(recv env fd stats_reply);
Printf.printf "SET_CONFIG\n"; flush stdout;
send set_config senv fd;
ignore(recv env fd prettyprint);
(* SET_CONFIG has no response. We make sure the connection hasn't lost
sync by sending any message which elicits a response. *)
send stats_request senv fd;
ignore(recv env fd stats_reply);
Printf.printf "Done\n";
)

0 comments on commit af752a9

Please sign in to comment.