WOL Ex2.05 stops pinging the hosts after some time

Control the state of remote PCs. [link]
souden
Posts: 2
Joined: Tue Dec 29, 2009 1:35 pm

Re: WOL Ex2.05 stops pinging the hosts after some time

Post by souden » Sun Jan 24, 2010 7:33 am

I have tested 2 environments using WOL Ex 2.07

W2003 Standard Server:
PingAddressBookEntriesThreads set to 1: run for 26000 seconds, then ping stopped
When it works I see in Sysinternals Process Explorer that every x seconds a thread mscorwks.dllCoExitProcess_0x21e9 is started.
When pinging stopped, also the above thread is no longer started.

PingAddressBookEntriesThreads set to 5: run for 17 seconds, then ping stopped
PingAddressBookEntriesThreads set to 2: run for 1700 seconds, then ping stopped

Windows XP SP3, .NET Framework 3.5 and all MS updates
PingAddressBookEntriesThreads set to 1: run for 73000 seconds and still pinging

User avatar
BootBlock
Unclean, unclean!
Posts: 425
Joined: Wed May 28, 2008 11:17 pm
Location: United Kingdom
Contact:

Re: WOL Ex2.05 stops pinging the hosts after some time

Post by BootBlock » Sun Jan 24, 2010 1:32 pm

I think I may have found the problem - can you give the following a try and see if it still has the ping problem? Thanks!

Edit: Incidentally, I found out the reason why there was an open listening port. It's to do with .NET and making an application single instance. I've removed it from the below download and will be implementing my own single-instance solution (via a mutex) for the next proper release.

Download: WoLEX v2.08 Test (238KB)

Petr
Posts: 8
Joined: Wed Nov 11, 2009 11:14 pm

Re: WOL Ex2.05 stops pinging the hosts after some time

Post by Petr » Sun Jan 24, 2010 10:13 pm

It looks well, PingAddressBookEntriesThreads set to 5, 27000 seconds and still pinging. 8-)

pjcard
Posts: 10
Joined: Mon Jan 25, 2010 12:14 pm

Re: WOL Ex2.05 stops pinging the hosts after some time

Post by pjcard » Mon Jan 25, 2010 12:16 pm

I've seen the same behaviour (lack of status updates) under vista on 2.06, still trying to confirm, but test 2.08 seems to fix the issue with me too. This was with 18 machines in the adress book, 5 sec interval, 18 threads.

(Haven't tried packet sniffing, so I don't know if the app was pinging, but the statuses wern't updating).

pjcard
Posts: 10
Joined: Mon Jan 25, 2010 12:14 pm

Re: WOL Ex2.05 stops pinging the hosts after some time

Post by pjcard » Mon Jan 25, 2010 4:47 pm

Update: 2.08 still working after 6 hours.

User avatar
BootBlock
Unclean, unclean!
Posts: 425
Joined: Wed May 28, 2008 11:17 pm
Location: United Kingdom
Contact:

Re: WOL Ex2.05 stops pinging the hosts after some time

Post by BootBlock » Mon Jan 25, 2010 9:07 pm

That's great to hear! In fact, so great, that I've decided to make a new release.

The big "thing" in this release is of course the ping fix. For those interested, the problem was to do with a variable being read/written by multiple threads at the same time. The more threads there were, the higher the chance of the error. Using the Interlock class provided the solution.

Also explains the update check hanging in Comical. Guess that means I'll need to push an update out for that as well...

View: Wake On LAN Ex v2.08

Code: Select all

v2.08; 25th January, 2010.
  - Added: Check and warning message for non-writable settings path.
  - Added: Configurable Escape key setting to the Settings window.
  - Added: Introductory message if there are no address book entries (eg. first run).
  - Fixed: Pings sometimes stalling indefinitely. Thanks to everyone on the forum!
  - Other: Main and About window interface changes.
  - Other: Changed the way key detection works in the address book.
  - Other: PingAddressBookEntriesThreads is now 6 by default on all OSes, including XP.
  - Other: Ping threads priority changed from Normal to BelowNormal.
  - Other: Save button in Settings window was incorrectly positioned in Linux.
  - Other: Error handling improvements.
  - Other: Removed BiQubic.Suite.Controls.dll dependency.
  - Other: Removed BiQubic.Suite.Core.dll dependency.

pjcard
Posts: 10
Joined: Mon Jan 25, 2010 12:14 pm

Re: WOL Ex2.05 stops pinging the hosts after some time

Post by pjcard » Thu Jan 28, 2010 1:48 pm

After further testing, the pinging still seems rather hit and miss. Case in point:

I right select two machines, select shutdown, the machines shutdown
After a few minutes, one machine shows as offline, the other still shows as online
If I ping the 'online' machine, my pings fail
This was just after starting running app freshly
Restarting the app shows both machines correctly as offline
Settings:
PingAddressBookEntriesInterval 30s,
PingAddressBookEntriesThreads 6,
PingAddressBookEntriesTimeOut 500ms

Are there any log files I can provide you with?

pjcard
Posts: 10
Joined: Mon Jan 25, 2010 12:14 pm

Re: WOL Ex2.05 stops pinging the hosts after some time

Post by pjcard » Thu Jan 28, 2010 1:49 pm

Oh, I'm running on vista business and all the machines are vista business.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests