Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 529853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:08:06+00:00 2026-05-13T09:08:06+00:00

After developing an awesome app on my local machine without any consideration of how

  • 0

After developing an awesome app on my local machine without any consideration of how it would perform on my host, I have run into a terrible issue. I am serving files (.pdf & .zip) through rails send_file so that I can log statistics. The only problem is that when two (or more) files are downloaded simultaneously, a new ruby dispatch.fcgi process must be started to handle each one. I understand this could be avoided by using mod_xsendfile, but unfortunately my host doesn’t support that apache mod. So here’s the weird part. These processes are being created as expected, but for some reason they are never exiting. As a test, I downloaded about 10 files simultaneously from a couple different computers. There were about 10 processes created, but none ever exited. Even minutes after their invocation and even after the downloads had been long completed.

Why aren’t these exiting? What can I do to avoid this problem other than switch to a real host that provides support for mod_xsendfile?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T09:08:06+00:00Added an answer on May 13, 2026 at 9:08 am

    If you don’t need access control to the files you’re offering, you could always try placing the files somewhere under /public or some other url outside of the rails application.

    When a user goes to download a file, it could take them to a controller action that updates download statistics, then redirects the user’s browser to the path where the file is actually stored using a meta refresh tag or a bit of javascript. This way, apache will be handling the file transfer without rails… essentially what xsendfile would do.

    On the other hand, switching to another host is probably something worth looking into if this is anything more than a toy project you’re working on… fastcgi is a pretty antiquated way to be serving a rails app at this point.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

After developing in PHP for a long time I have decided to step into
I'm trying to run my C#/C++ app on Linux after developing it on Windows.
I have a friend who's just getting into .NET development after developing in Java
I have been developing a sample application after reading Rails 3 Tutorial book. In
I' m developing an Android app wich requires me to use a Database. After
I'm developing an app (Flash/AS3) that connects to Facebook. After the user logs in
After developing software for about 5 years now, I have spent probably atleast 20%
After a user logs in to an app I am developing, based on their
I am developing phonegap app in iphone,after successfully viewing pdf file (from server) on
i am developing an android app and it happened that after working with layouts

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.