long delay to Openfile across network

This is a discussion about long delay to Openfile across network in the Windows Networking category; I call OpenFile to access a file across a network, using an IP address. If the network connection is not established, there is an intolerable delay in the response to the Openfile call (45 seconds on my machines).

Windows Networking 2246 This topic was started by , . Last reply by ,


data/avatar/default/avatar03.webp

2 Posts
Location -
Joined 2002-01-15
I call OpenFile to access a file across a network, using an IP address. If the network connection is not established, there is an intolerable delay in the response to the Openfile call (45 seconds on my machines). This seems to be the case for the execution of any code which results in a call to CreateFile (OpenFile, FileExist, etc.)
During this delay, the machine's resources seem to be frozen.
 
How can the connection be checked prior to the call?
How can the operation be aborted if the delay is too long?

Participate in our website and join the conversation

You already have an account on our website? To log in, use the link provided below.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This subject has been archived. New comments and votes cannot be submitted.
Jan 23
Created
Jan 23
Last Response
0
Likes
1 minute
Read Time
User
Users