ClarkuCSCI / pydiode

Transfer data through a unidirectional network (i.e., a data diode)
MIT License
2 stars 0 forks source link

Bug: Receive Doesn't Exit #5

Closed peterstory closed 4 months ago

peterstory commented 9 months ago

Reproducible with the GUI:

  1. Start receiving
  2. Start sending a large file
  3. Cancel sending partway through
  4. Start sending the large file again

Expected behavior

Receiving should stop with an error.

Actual behavior

Receiving keeps running until it is canceled. When it is cancelled, only pydiode exits with an error. This suggests that tar exited first, without an error. Something is keeping pydiode from exiting, even though it presumably saw the EOF packets. Perhaps it's waiting for tar to consume its STDOUT?