The Toolkit for Online Communities
17363 Community Members, 0 members online, 2193 visitors today
Log In Register
OpenACS Home : Forums : OpenACS Q&A : cr_write_content ignores UseBackGroundDeliveryP flag

Forum OpenACS Q&A: cr_write_content ignores UseBackGroundDeliveryP flag

Icon of envelope Request notifications

Cr_write_content (in packages/acs-content-repository/tcl/revision-procs.tcl) appears to use the existence of the ad_returnfile_background proc to determine whether to use background delivery. There is a kernel parameter (UseBackGroundDeliveryP) for that purpose but it is apparently ignored.

Ad_returnfile_background is installed as part of xotcl-core.

I added code to my local copy in order to permit disabling of background delivery without the need to remove xotcl-core using [parameter::get_from_package_key -package_key acs-kernel -boolean -parameter UseBackgroundDeliveryP -default 0] to get the value of the parameter.

Is this the best way to go about this?

Posted by Gustaf Neumann on
Dave, you are right, background delivery does not work with nsopenssl, there is no easy way to address the problem. The best approach is to deactivate it automatically, when a request comes via SSL.

I was not aware about the flag UseBackGroundDeliveryP, and did some history mining. The flag was introduced by Mannheim in 5.2 (as parameter with code in revision_procs), but then the changes were reverted soon after that, but whoever did the revert missed the flag in the kernel parameters.


It is better to deactivate background delivery automatically in cases where it is known not to work, than to depend on an admin deactivating it manually.

i have made this fix in cvs head, oacs-5-4 and oacs-5-3.

Posted by Dave Manginelli on
You're fast Gustaf!

Thanks for the speedy response.  I'll grab your fix from CVS.