hyperdrive icon indicating copy to clipboard operation
hyperdrive copied to clipboard

Add timeout option to all read calls

Open pfrazee opened this issue 7 years ago • 3 comments

I need to be able to control whether and how long the timeout for read calls works. At a glance that'll need to cover:

  • access
  • stat
  • lstat
  • readdir
  • readfile
  • createReadStream

pfrazee avatar Apr 10 '17 17:04 pfrazee

Currently, when offline and attempting to do a .readFile() when the data isn't yet synced will cause the node process to exit without throwing an exception.

I did a little test and if we set a default timeout and pass it through, it will throw a nice timeout error before node exits.

jimpick avatar Apr 03 '18 02:04 jimpick

Has there been any movement on this issue? Having the ability to timeout calls seems pretty essential.

eu1444 avatar Jul 20 '18 22:07 eu1444

I think a timeout for download is important as well.

eu1444 avatar Aug 15 '18 18:08 eu1444