From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-2.9 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, URIBL_BLOCKED shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: unicorn-public@bogomips.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id E943E1F6A8; Tue, 24 Mar 2015 22:59:57 +0000 (UTC) Date: Tue, 24 Mar 2015 22:59:57 +0000 From: Eric Wong To: Michael Fischer Cc: unicorn-public Subject: Re: nginx reverse proxy getting ECONNRESET Message-ID: <20150324225957.GA22127@dcvr.yhbt.net> References: <20150324225437.GA21975@dcvr.yhbt.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150324225437.GA21975@dcvr.yhbt.net> List-Id: Another likely explanation might be you're not draining rack.input every request, since unicorn does lazy reads off the socket to prevent rejected uploads from wasting disk I/O[1] So you can send a bigger POST request with my example to maybe reproduce the issue. [1] you can use the Unicorn::PrereadInput middleware to forcibly disable the lazy read: http://unicorn.bogomips.org/Unicorn/PrereadInput.html