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

  • Home
  • SEARCH
  • 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

Ask A Question

Stats

  • Questions 287k
  • Answers 287k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Learning IL completely is like learning assembly, in many ways.… May 13, 2026 at 5:13 pm
  • Editorial Team
    Editorial Team added an answer You can start from this one http://pastebin.com/f3472a877 and write your… May 13, 2026 at 5:13 pm
  • Editorial Team
    Editorial Team added an answer I don't know TAdvOfficeHint but I guess it hooks Application.OnShowHint… May 13, 2026 at 5:13 pm

Related Questions

I am developing a wizard for a machine that is to be used as
M developing an application which starts with a login page. After loggin the user
I am developing an .aspx page which will ultimately launch an applet after the
I am developing an e-commerce app using asp.net mvc. After user successfully logged into
I developing an application in WPF where a single click on an item will

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.