I think I'm with Andre on this one, I'd probably want an example use case.
In my example, the headers are just for demonstration purposes, by no means required. There's a ton of ICAP properties, so I figured I'd show proper usage so you didnt have to rip your hair out.
What's your goal or rough setup?
Perhaps I'm having trouble because you might be asking something aside from the original thread. The rough idea for this original thread was to force the ICAP scan "offline" or in other words initiate an asynchronous background scan so the user can get his/her download/upload without waiting.
Here's a run down.
1. User requests LargeFile.rar
2. MWG passes LargeFile.rar through rules, hits the "Init Offline Scan" Rules -- for this example its the response cycle since its a download
3. MWG forks a new transaction (because of the property Antimalware.MATD.InitBackgroundScan(5)), with a response timer of 5 seconds
4. If the forked transaction takes longer than 5 seconds, transaction #1 moves on, if it takes less than 5 seconds, the user will receive whatever modified content is returned by the Offline scann
1. The new transaction is copied/forked from Transaction #1, but the cycle is now all held within the request cycle, this new request will be marked as a BackgroundScan
2. This new transaction is monitored by MWG until it is finished, an action asynchronous to the original action must be taken (send email, write to log, etc...) because the original could be long gone
Don't forget, when your helpful posts earn a kudos or get accepted as a solution you can unlock perks and badges. Those aren't the only badges, either. How many can you collect? Click here to learn more.
Community Help Hub
New to the forums or need help finding your way around the forums? There's a whole hub of community resources to help you.