Website unusable (504 errors) when downloading....Any reason why?

Discussion in 'PHP' started by RickBurns, Jan 25, 2010.

  1. #1
    Hello all,

    My site offers users to download files for free and works fine for the most part. However, when I download a file I cannot access the main site until the download is complete. The site returns a 504 error everytime until the download is cancelled or finished.

    I'm wondering what would be the cause of this? Thoughts for a fix?
    Thanks in advance,
    Rick
     
    RickBurns, Jan 25, 2010 IP
  2. chandan123

    chandan123 Prominent Member

    Messages:
    11,586
    Likes Received:
    578
    Best Answers:
    0
    Trophy Points:
    360
    #2
    which server you are using ? any special mods are installed ?
     
    chandan123, Jan 25, 2010 IP
  3. RickBurns

    RickBurns Peon

    Messages:
    185
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi,

    I'm using an i5 server. The only mods that are used are the Mod rewrite. I can't figure this out for the life of me.

    The browser I'm using is Safari.
     
    RickBurns, Jan 25, 2010 IP
  4. szalinski

    szalinski Peon

    Messages:
    341
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #4
    try using session_write_close(); just before you send the download
     
    szalinski, Apr 17, 2010 IP