Search squid archive

squid not killing my url_rewriters

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I'm working on a custom url_rewriter helper app, written in perl, that translates incoming URL requests to custom URLs using a config file that is loaded at startup and is polled for changes at regular intervals.

In order to handle the update polling, the script uses POE for event handling, using POE::Filter::Line to handle incoming URL requests from squid and then a delay to handle the config poll interval.

The problem I've found, which I didn't have when the first iteration of the script was simply a while(<>) loop, is that when squid exits or is HUP'ed, it kills the existing helper apps by sending an EOF (Ctrl- D). However, POE's signal handling doesn't seem to be able to respond to EOF (only KILL, HUP, etc), and as such, the children never exit.

Anyone know enough about POE to let me know if I'm missing something I can do in my code in order to enable POE's handling the EXIT/EOF/CRTL- D signal? Or a way to make squid use KILL instead of EOF to kill off the url rewriters for sure?

Thanks,

-Chris

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux