apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 41254] apr_queue_t enhancements
Date Mon, 29 Jun 2009 15:53:21 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=41254





--- Comment #8 from Yossi Neiman <freeswitch@cartissolutions.com>  2009-06-29 08:53:19
PST ---
It suppose it can seem esoteric.  However, specific case scenario where I used
this feature was this:

1.  You have an apr_queue_t full of an unknown number of objects to be
processed.
2.  Processing of these objects depends on a user-provided configuration (for
example credentials to connect to an RDBMS).
3.  The user needed to make a change to the configuration, and wants the
program to reload the configuration.
4.  Without the ability to pause the apr_queue_t, we could have a scenario
where the config is being reloaded at the exact second one of these objects is
being processed, and cause any number of problems (object not getting recorded
or program crashing).

There can be other instances where this might be handy as well, such as where
you need to pause the queue to do some sort of maintenance and then unpause it.
 You can see the old mod_cdr from the FreeSWITCH project to see how I had
implemented it if you like.

Since it doesn't add much complexity, it seemed to be something that other
folks might find useful if it's available.  Feel free to merge this patch.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message