diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2010-12-01 13:24:23 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2010-12-01 13:35:32 +0000 |
commit | 8bfca99b9ab5774ce8aa1086184479ebb98236b2 (patch) | |
tree | 295b226c25b53dac545d926ebe834ec9df432e80 /python/t/010-launch.py | |
parent | 7e523077d650cfb71044d5e74aa8fe1f91c019ae (diff) | |
download | libguestfs-8bfca99b9ab5774ce8aa1086184479ebb98236b2.tar.gz libguestfs-8bfca99b9ab5774ce8aa1086184479ebb98236b2.tar.xz libguestfs-8bfca99b9ab5774ce8aa1086184479ebb98236b2.zip |
protocol: Really read 4 bytes while checking for cancellation.
We've not actually hit this bug in practice, but at least in
theory while checking for cancellation we could read > 0 but
fewer than 4 bytes, which would effectively be discarded and
we would lose synchronization.
Note the socket is non-blocking.
Change the code so that we temporarily set the socket back to
blocking and force the read of all 4 bytes.
Diffstat (limited to 'python/t/010-launch.py')
0 files changed, 0 insertions, 0 deletions