Re: NEtwork not available - XY hangs for several minutes
Posted: 18 Sep 2008 11:24
uhh, ok:admin wrote: Don't worry about the checking: that's XY's job. Of course, XY checks existence before opening any tab. The point is that there are many ways to check the availability of a server, and the area is not well documented. Hence I make experiments to collect user feedback. You tell me which function works the fastest, I implement it.
Path: \\myserverpath
- Check 1: False. Time: 46.611,611 msec
- Check 2: False. Time: 0,045 msec
- Check 3: False. Time: 0,446 msec
- Result...
- Result...
- Check 6: False. Time: 25.709,150 msec (NetShareEnum, Level 1 => 53)
- Check 7: False. Time: 25.841,994 msec (NetShareEnum, Level 0 => 53)
- Check 8: False. Time: 25.817,498 msec (NetShareEnum, Level 2 => 53)
- Check 9: False. Time: 25.520,360 msec (NetShareEnum, Level 502 => 53)
- Check 10: False. Time: 0,086 msec
Check4 and 5 took much longer each (over 1mill msec or so)