1
1
libssh/tests/pkd
Jon Simons 8d7563a9c3 pkd_daemon.c: split final close loop; wait for client to close
Sometimes, but not always, the pkd tests will fail because they
close the socket at hand a bit too early for the client.  The
client in turn may exit non-zero when that happens.

Split up the final close loop so that pkd waits to receive a
channel close from the client, and then socket close, before
finally returning.

With this change I observe that tests are now passing in
environments that would previously tickle the above race
and fail.

Signed-off-by: Jon Simons <jon@jonsimons.org>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2017-09-11 16:30:54 +02:00
..
CMakeLists.txt cmake: Fix zlib include directory 2015-07-03 12:36:26 +02:00
pkd_client.h tests: introduce pkd_hello 2014-10-12 15:01:02 +02:00
pkd_daemon.c pkd_daemon.c: split final close loop; wait for client to close 2017-09-11 16:30:54 +02:00
pkd_daemon.h pkd: a few improvements and fixups 2017-08-17 09:24:19 +02:00
pkd_hello.c pkd_hello.c: fix return code upon test failure 2017-09-11 16:30:45 +02:00
pkd_keyutil.c tests: introduce pkd_hello 2014-10-12 15:01:02 +02:00
pkd_keyutil.h tests: introduce pkd_hello 2014-10-12 15:01:02 +02:00
pkd_util.c tests: fix pkd build breakages 2014-10-15 10:26:24 +02:00
pkd_util.h tests: introduce pkd_hello 2014-10-12 15:01:02 +02:00