C
Charles
Perhaps I have misunderstood how these things work. I have a Threading.Timer
object set to go off every 10 seconds. The timer callback sends some data
out on a TCP socket and checks for a reply. It then terminates. It will only
wait for a maximum of 5 seconds, but occasionally it will timeout and exit.
If the first callback occurs at time t and takes 5 seconds to complete, I am
expecting the next callback to occur at t+10. That's correct, isn't it?
What I am finding is that sometimes a callback doesn't occur for as much as
22 seconds after the previous one. What could cause this?
Would a System.Timers.Timer be any better?
TIA
Charles
object set to go off every 10 seconds. The timer callback sends some data
out on a TCP socket and checks for a reply. It then terminates. It will only
wait for a maximum of 5 seconds, but occasionally it will timeout and exit.
If the first callback occurs at time t and takes 5 seconds to complete, I am
expecting the next callback to occur at t+10. That's correct, isn't it?
What I am finding is that sometimes a callback doesn't occur for as much as
22 seconds after the previous one. What could cause this?
Would a System.Timers.Timer be any better?
TIA
Charles