summaryrefslogtreecommitdiffstats
path: root/python/t/050-lvcreate.py
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2010-12-01 13:24:23 +0000
committerRichard W.M. Jones <rjones@redhat.com>2010-12-01 13:35:32 +0000
commit8bfca99b9ab5774ce8aa1086184479ebb98236b2 (patch)
tree295b226c25b53dac545d926ebe834ec9df432e80 /python/t/050-lvcreate.py
parent7e523077d650cfb71044d5e74aa8fe1f91c019ae (diff)
downloadlibguestfs-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/050-lvcreate.py')
0 files changed, 0 insertions, 0 deletions