| buubot | Found Watching long processes through CGI (Aug 02) at [ http://www.stonehenge.com/merlyn/LinuxMag/col39.html ] |
| spaffum | merlyn! it was you! thanks :) |
| merlyn | yes - it was me all along. :) |
| spaffum | you da man |
| action | merlyn pulls off his mask |
| merlyn | pulls off his mask |
| spaffum | hey so i have a question for you |
| merlyn | 42 |
| spaffum | since i'm forking |
| merlyn | oh - I have to wait for the question. :) |
| spaffum | if i encounter an error condition and I want to gracefully bail out, and maybe display an error page |
| hobbs | merlyn: shh. you already answered it, now you get to sit back and find out the question |
| spaffum | but i am in the child what's the best way to do that? |
| merlyn | via some sort of protocol the data in Cache::Cache is any arbitrary hash make up what you want it to mean |
| spaffum | hmm i have never messed with protocols |
| merlyn | { progress => "some string getting longer" , errors => "show this instead of progress and don't loop" } etc protocol just means "agreed upon things" |
| spaffum | ohh i see what you mean just add that to the cache |
| merlyn | yeah |
| spaffum | i see |
| merlyn | so if the child gets something bad, it sets something different |
| spaffum | i had beeen using cache as just an array of strings |
| merlyn | next web hit wakes up, finds the different thing, and stops looping |
| spaffum | gotcha - of course! makes perfect sense thx :) |
| merlyn | perlbot, thx > spaffum are you paying by the character? |
| spaffum | should I be? :) |
| merlyn | why "thx" instead of the human "thanks" unless you're paying by the character |
| spaffum | well if thanks is preferred, then "thanks" :) oh lol |