Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author John Godley

    (@johnny5)

    Do you have a specific reason why you think the redirect is involved in the delay? You can use the redirect checker to verify this:

    https://redirect.li/http/?url=https%3A%2F%2Fwww.datanumen.com%2Fword-repair%2Fdwordr.exe

    In my tests, without even visiting the target URL, the delay is around 350ms.

    It does not appear that the redirect is involved is related.

    Thread Starter chcw

    (@chcw)

    350 ms is acceptable.

    And now the redirection is OK.

    But sometimes when using the source URL, it takes about 15 seconds to redirect to the target URL.

    I think that is caused by the redirection because if I use the target URL directly, there is no such a 15-second delay.

    Plugin Author John Godley

    (@johnny5)

    350ms is very good.

    I can’t say why you are seeing a 15 second delay. You have multiple layers of caching on your site and anything could be happening.

    if I visit the source URL, then during the download process, I cannot visit any other URLs in the website, until the download process completes.

    This is not part of the redirect and suggests your site has other problems that need looking at.

    Thread Starter chcw

    (@chcw)

    if I visit the source URL, then during the download process, I cannot visit any other URLs in the website, until the download process completes.

    This is not part of the redirect and suggests your site has other problems that need looking at.

    Because if I download with the target URL directly, then there will be no such a problem. That happens only when downloading with the source URL.

    Plugin Author John Godley

    (@johnny5)

    That happens only when downloading with the source URL.

    But you’re not downloading with the source URL. The redirect sends you to the download URL, and the download happens there. It seems unlikely that the redirect is still having an effect after it’s already happened.

    I would suggest looking into your site’s overall performance. Is it running out of memory? Is something hitting the CPU?

    Thread Starter chcw

    (@chcw)

    But you’re not downloading with the source URL. The redirect sends you to the download URL, and the download happens there. It seems unlikely that the redirect is still having an effect after it’s already happened.

    It seems that after the redirect, the redirect or something is still have an effect on the site. It is very easy to reshow this issue:

    If download from the source URL: https://www.datanumen.com/dwg-recovery/ddwgr.exe (A large file). Then during the download, visit https://www.datanumen.com/ , it will NOT open.

    If download from the target URL: https://www.datanumen.com/downloads/file/ddwgr.exe, then during the download process, visit https://www.datanumen.com/ , it will open.

    I would suggest looking into your site’s overall performance. Is it running out of memory? Is something hitting the CPU?

    It is a dedicated server with 128GB memory and I have checked the CPU and memory usage, both are very low during this period:

    CPU: 0.46 0.34 0.32

    memory available: 124276660

    Plugin Author John Godley

    (@johnny5)

    I cannot reproduce the problem you stated.

    It seems that after the redirect, the redirect or something is still have an effect on the site

    Once the redirect has taken place the code is no longer running. It doesn’t leave anything in the background – that isn’t how PHP works.

    If download from the source URL

    You are not redirecting from the source URL. You are redirecting to the target URL where the download then takes place on the same URL. This is two separate requests, and the first won’t affect the second.

    The redirect takes place in about 350ms. This is a quick time and does not appear to put load on the server. What happens after that is not related to the redirect, it is a separate request and another PHP process. A download of a large file will put load on a server. Your site has multiple layers of caching, and what you are describing sounds like something that one or more of the caches is affecting.

Viewing 7 replies - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.