holepunchto / hyperdrive

Hyperdrive is a secure, real time distributed file system
Apache License 2.0
1.86k stars 134 forks source link

FD close cancels pending reads #262

Closed andrewosh closed 4 years ago

andrewosh commented 4 years ago

When a file descriptor is closed, it should cancel all pending download ranges, which should in turn trigger cancellation errors for all pending reads. This is particularly important for FUSE, as it will prevent hanging terminals etc after a program exits before reads could complete.