unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Michael Fischer <mfischer@zendesk.com>
To: Paul Henry <paul@wanelo.com>
Cc: Eric Wong <e@80x24.org>, unicorn-public <unicorn-public@bogomips.org>
Subject: Re: High number of TCP retransmits on Solaris
Date: Tue, 22 Jul 2014 15:07:01 -0700	[thread overview]
Message-ID: <CABHxtY6AV+rgVa+KAQPJVETxK7-Lqyq0ZdvoNaLsYk3P28cLrQ@mail.gmail.com> (raw)
In-Reply-To: <CALKdqYUjp-ATMPoaVFQ98Hz=AZmUZZfTY5cwMmeQvs+NkGxQog@mail.gmail.com>

On Tue, Jul 22, 2014 at 2:56 PM, Paul Henry <paul@wanelo.com> wrote:

> Thanks so much! It turned out to be a separate issue entirely, one that
> appears only in Solaris. When you have a high rate of connections, sockets
> sit around in the TIME_WAIT state for a default of 60s. Basically, there's
> a bug in Solaris that causes a new connection to be routed (based on what
> chooses the ephemeral port) to an existing TIME_WAIT connection. When the
> new client sends a SYN, the server responds with an ACK that has an
> incorrect sequence number (intended for the old client). This causes the
> client to retransmit the SYN and then the server responds correctly.


Ah, you were simply running out of IP 4-tuples on the server.   This isn't
usually a problem in practice because client IPs are usually much more
diverse.  (IIRC the behavior on Linux and FreeBSD is to send an RST to the
client when this happens instead of not responding to the SYN.)

--Michael


  reply	other threads:[~2014-07-22 22:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-22 18:52 High number of TCP retransmits on Solaris Paul Henry
2014-07-22 18:57 ` Michael Fischer
2014-07-22 19:03   ` Paul Henry
2014-07-22 20:56 ` Eric Wong
2014-07-22 21:56   ` Paul Henry
2014-07-22 22:07     ` Michael Fischer [this message]
2014-07-22 22:10       ` Michael Fischer
  -- strict thread matches above, loose matches on Subject: below --
2014-07-22 18:51 Paul Henry

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://yhbt.net/unicorn/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CABHxtY6AV+rgVa+KAQPJVETxK7-Lqyq0ZdvoNaLsYk3P28cLrQ@mail.gmail.com \
    --to=mfischer@zendesk.com \
    --cc=e@80x24.org \
    --cc=paul@wanelo.com \
    --cc=unicorn-public@bogomips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhbt.net/unicorn.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).