| View previous topic :: View next topic |
| Author |
Message |
madpinger Voice
Joined: 03 Oct 2010 Posts: 12
|
Posted: Sun Oct 03, 2010 3:16 pm Post subject: Weirdness, Lines of code being skipped randomly ??? |
|
|
Ok, the details of the setup.
I'm using the following packages:
base64, tdom, http, sqlite3, mysqltcl
Tcllib 1.2, tcl 8.5.9 and 8.5.8
Eggdrop 1.6.8+sockfix svn snapshot and Eggdrop 1.6.20.
These are two distinct builds running the same script on two sep. servers and having the same weirdness.
In several places, I have statements where only PART of the code
In the following example:
| Code: |
set auth "Basic [base64::encode [CoreDB_iceCastUserName]:[CoreDB_iceCastPassWord]]"
set headerl [list Authorization $auth]
if { [catch { set tok [http::geturl "http://[CoreDB_iceCastHost]:[CoreDB_iceCastPort]/admin/stats" -headers $headerl] } errmsg] } {
putlog "icecastproc: Fetching of icecast XML failled with error: $errmsg : Delaying run.";
dputs "icecastproc: Finnished With Errors";
utimer 30 icecastproc
return 1
}
|
Some times, it ONLY executes the "putlog" statement and then continues execution of code past the closing curly bracket when it should return. it does not even execute the dputs function or utimer. Yet, I have removed everything but the return, it refuses to execute anything other than the putlog statement when errors like "Connection refused" occur, etc. Other times, it acts as expected, records the error to log and resets the timer.
I have sim issues in a few places and am at a utter loss as to why.
Anyone have an Ideal whats going on ? |
|
| Back to top |
|
 |
Pixelz Voice

Joined: 15 Jun 2005 Posts: 24 Location: EFnet
|
Posted: Thu Oct 07, 2010 1:50 am Post subject: Re: Weirdness, Lines of code being skipped randomly ??? |
|
|
| Quote: | | Some times, it ONLY executes the "putlog" statement |
| Quote: | | it does not even execute the dputs function or utimer. |
That's just not possible. You sound very confused. _________________ Pixelz @ EFnet, freenode, QuakeNet, Undernet |
|
| Back to top |
|
 |
madpinger Voice
Joined: 03 Oct 2010 Posts: 12
|
Posted: Fri Oct 08, 2010 3:56 pm Post subject: Re: Weirdness, Lines of code being skipped randomly ??? |
|
|
| Pixelz wrote: | | Quote: | | Some times, it ONLY executes the "putlog" statement |
| Quote: | | it does not even execute the dputs function or utimer. |
That's just not possible. You sound very confused. |
No, I'm not confused. It's weirdness.
Sometimes, it only executes the very first line, others it does not. Regardless it skips the return and continues execution of code past the bracket. Rather bothersome really. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|