only use file descriptors when streaming.