correct test client to close synchronously with last send
authorAndy Green <andy.green@linaro.org>
Sat, 9 Feb 2013 06:10:04 +0000 (14:10 +0800)
committerAndy Green <andy.green@linaro.org>
Sat, 9 Feb 2013 06:27:24 +0000 (14:27 +0800)
commit8e0c98484e304214909a6c96de818607578f78f4
tree5741f8fc519ef4d8ff62c4ded2e3c5c57d1ed415
parente7c97e84295030bb68bfb0eb42bff0a63dbad78c
correct test client to close synchronously with last send

Noticed previously the test client lifetime is decoupled from
the actual send activity.  With SSL if the connection starts but
there is a period of SSL-layer "blocking" (actually fail-and-retry)
the mirror lifetime could be exhausted before the connection really
completed, making it stall after it was then closed.

This corrects that so connection lifetime management is done in the
send callback.

Signed-off-by: Andy Green <andy.green@linaro.org>
test-server/test-client.c