cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Progress done page fix when using Web Gateway high availability

Jump to solution

We discovered a very annoying problem when using the progress indication pages feature of the Anti malware scanner when using this feature combined whit Web Gateway high availability.

When a file has been downloaded and the client is presented with the progress done page which contains a link to the downloaded file and the clients waits a few minutes before using this link he / she gets a 50/50 chance that the link produces a error instead of the downloaded file.
This happens because the HA load balancing processes does not care about the progress done page links. If a client is inactive for more than 300 seconds he / she is removed from the active sessions table and he / she is reassigned to a available Web Gateway when the link is clicked. If this is the Web Gateway which downloaded the file in the first place the link is valid and the file is presented. If the client lands on a web gateway which did not download the file a error is produced and the client has no other option than to download the file again. We reported this issue at McAfee support but it was handled as a known problem (feature works as “designed”). If we wanted to continue to use the progress page combined with HA we could submit a feature modification request and the case was closed. So we had no choice other than creating our own “quick and dirty” fix.

We added the following code (from a web page programming example site) at the bottom of the Default schema html file (after the last </table> entry):

<script type="text/javascript">          

            function keepMeAlive(imgName)

            { 

                myImg = document.getElementById(imgName);  

                if (myImg)

                    myImg.src = myImg.src.replace(/\?.*$/, '?' + Math.random());  

            }  

            window.setInterval("keepMeAlive('keepAliveIMG')", 100000);

        </script>

<div style=" display: inline;">

                        <img id="keepAliveIMG" width="1" height="1" src="http://www.keep.alive/keepalive.gif?" alt="">

</div>

default.png

This java script will display a non existing image on a single pixel (invisible). Every 100 seconds this none existing image is refreshed. This keeps the download progress done page (and all other web gateway internal pages) “fresh” because the connection stays alive in the active session table. This

resolves the issue because the client stays on the same Web Gateway as long as the page is open in browser. It’s a little dirty because it will add extra entries in the internet access log file but it “gets the job done” (and the users happy, at least for us ;-))

Hope this helps anybody who uses Web gateway High Availability and wants to use the download progress pages till Web Gateway development address this bug (if that ever happens)

1 Solution

Accepted Solutions
sroering
Level 13
Report Inappropriate Content
Message 2 of 2

Re: Progress done page fix when using Web Gateway high availability

Jump to solution

Thanks for sharing your experience. 

Could you please edit and unmark this thread as a question.

mark_as_question.png

View solution in original post

1 Reply
sroering
Level 13
Report Inappropriate Content
Message 2 of 2

Re: Progress done page fix when using Web Gateway high availability

Jump to solution

Thanks for sharing your experience. 

Could you please edit and unmark this thread as a question.

mark_as_question.png

View solution in original post

You Deserve an Award
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.

  • Find Forum FAQs
  • Learn How to Earn Badges
  • Ask for Help
Go to Community Help

Join the Community

    Thousands of customers use the McAfee Community for peer-to-peer and expert product support. Enjoy these benefits with a free membership:

  • Get helpful solutions from McAfee experts.
  • Stay connected to product conversations that matter to you.
  • Participate in product groups led by McAfee employees.
Join the Community
Join the Community