in reply to Re^6: Spurious "Invalid Argument" on file open
in thread Spurious "Invalid Argument" on file open

Just to get some idea ... what kind of resource state could, for example, cause such an effect?

I don't know much about CIFS, but in general, anything that crosses a network can be subject to temporary timeouts.

Take for example, that even in blocking mode, accept() can return without a valid connection for a variety of reasons.

Looking at the wikipedia description, Level 2 OpLocks look like a possibility. I'm not sure what timeouts are involved with the SMB protocol, but if the network is heavily congested or the serving node is bogged down, the client could timeout before the server gets around to responding.

Any code that deals with a network should allow for these possibilities.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

RIP Neil Armstrong

  • Comment on Re^7: Spurious "Invalid Argument" on file open

Replies are listed 'Best First'.
Re^8: Spurious "Invalid Argument" on file open
by rovf (Priest) on Oct 24, 2012 at 14:33 UTC
    if teh network is heavily conjested or the serving node is bogged down, the client could timeout before the server gets around to responding.
    This indeed could have been the case here! Thanks!

    -- 
    Ronald Fischer <ynnor@mm.st>