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 8819801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:27:15+00:00 2026-06-14T05:27:15+00:00

I am running ThreadPool rainbows + nginx (unix socket) On large file uploads I

  • 0

I am running ThreadPool rainbows + nginx (unix socket)

On large file uploads I am getting the following in nginx error log (nothing in the application log):

readv() failed (104: Connection reset by peer) while reading upstream

The browser receives response:

413 Request Entity Too Large

Why does this happen?

  • “client_max_body_size 80M;” is set both on http and server level (just in case) in nginx
  • nginx communicates with rainbows over a unix socket (upstream socket + location @ proxy_pass)
  • I don’t see anything in the other logs. I have checked:
    • rainbows log
    • foreman log
    • application log
    • dmesg and /var/log/messages
  • This happens when uploading a file ~> 1 MB size
  • 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-06-14T05:27:17+00:00Added an answer on June 14, 2026 at 5:27 am

    Turns out Rainbows had a configuration option called client_max_body_size that defaulted to 1 MB
    The option is documented here

    If this options is on, Rainbows will 413 to large requests silently. You might not know it’s breaking unless you run something in front of it.

    Rainbows! do
      # let nginx handle max body size
      client_max_body_size nil 
    end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Assume I have one threadpool and each thread is running following method: void runMe(HashMap
Running the following line in my script gives me a Permission denied error: $config_out
I have a web application running in tomcat where I'm using a ThreadPool (Java
I have a django application running under twisted with the following service: class JungoHttpService(internet.TCPServer):
I am using a ThreadPool via ExecutorService. By calling shutDownNow() it interrupts all running
Running my script through Devel::NYTProf showed that the following portion of code took up
Running the following program on gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3 and Intel(R) Core(TM)2 Duo CPU,
Running rails 3.2.3 with guard/spork/rspec/factory_girl and have the following in my spec helper: Spork.prefork
I have an application where I have many Searches running at the same time
I'm thinking about SEDA. We design at the moment an application (which is running

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.