I have an app that needs to regularly (1 sec) read a file across the network. Occasionally, the network fails me, and the app can't read the file. Problem is, the app hangs for a very long time each time this occurs, meaning it becomes unusable.
It's actually not important if this read fails occasionally. How can I reduce the timeout when I read from the file? The file is read using a Delphi 2006 FileStream. The target hardware is Win XP and 7.