New Feature: Watchdog Timer
Hi All,
If you're using SourceMod 1.6 snapshots, I've just added an experimental feature. If a plugin takes too long to execute - for example, it has a bug that causes your server to hang or infinite loop - SourceMod will now try to terminate the plugin. If that happens you'll get an error like this: Code:
L 08/14/2013 - 23:47:20: [SM] Plugin encountered error 30: Script execution timed out The timeout can be configured or disabled in core.cfg via the new "SlowScriptTimeout" option. It defaults to 8 seconds. Thanks! |
Re: New Feature: Watchdog Timer
What exactly is watchdog? Ages ago I set -nowatchdog in my startup line and I honestly can't even remember why.
Pretty neat feature though :) |
Re: New Feature: Watchdog Timer
It's a general term for anything that watches to make sure nothing's malfunctioning. Like when a webpage takes too long to load, most browsers have a "This script is taking too long..." dialog. That's a watchdog timer of some kind.
|
Re: New Feature: Watchdog Timer
Awesome! Thanks Bailopan!
|
Re: New Feature: Watchdog Timer
It'll be interesting to see what plugins actually reach such a timeout. I'd expect it to be very rare?
|
Re: New Feature: Watchdog Timer
heap memoty leak fixed in last dev 1.6 ?
|
Re: New Feature: Watchdog Timer
Quote:
|
Re: New Feature: Watchdog Timer
once or twice? I've been doing it a few times a week for three years. tis a wonderful feature xD.
|
Re: New Feature: Watchdog Timer
Good feature!
But today I got this error message. Probably caused by slow hardware I/O because the error occurred after rebooting the physical machine: Code:
L 11/04/2015 - 11:00:12: [SM] Plugin encountered error 30: Script execution timed out Code:
stock RemoveOldFiles(const String:directory[], const MaxAge) { Code:
native bool:IsCharAlpha(chr); |
Re: New Feature: Watchdog Timer
I think the watchdog timer begins a timer when a function in the plugin is first invoked, and if the whole operation takes more than 8 seconds it just kills the entire stack. I'm not sure however.
|
All times are GMT -4. The time now is 22:38. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.