Description
I had a problem using the update feature. I recevied a SegFault in do_host_db_lookup which was caused by accessing ua_session which was not initialized (see attached patch).
After fixing that i no longer get an SegFault, but the files that are retrieved by recursion are not placed into the cache. They are requested in every schedule.
Only the starting file is placed correctly into the cache.
When retrieving the files with a client, caching works as expected. So i don't think this is a configuration error.
The patch adds a NULL check for HttpSM::ua_session, but ua_session should not be NULL at this point. Maybe there's some condition that is only triggered by the update state machine.
I took a look at the update code and it doesn't look too promising. I think it will be some work to bring it to life and get it nicely tested. I'm happy to review and land patches.