From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 43E151FBEC; Wed, 8 Mar 2017 06:02:57 +0000 (UTC) From: Eric Wong To: unicorn-public@bogomips.org Cc: Simon Eskildsen Subject: [PATCH 0/3] TCP_INFO check_client_connection followups Date: Wed, 8 Mar 2017 06:02:54 +0000 Message-Id: <20170308060257.23740-1-e@80x24.org> List-Id: This series goes on top of Simon's excellent work to get a TCP_INFO-based check_client_connection working under Linux. First off, add a test extracted from one of Simon's messages; then revert the signature changes to existing methods to avoid breaking tmm1/gctools, and finally add a more portable fallback for Ruby 2.2+ users (tested on FreeBSD). Further work will improve portability of raindrops for FreeBSD (and maybe other *BSDs incidentally, too). That will be sent to raindrops-public@bogomips => https://bogomips.org/raindrops-public/ Eric Wong (3): new test for check_client_connection revert signature change to HttpServer#process_client support "struct tcp_info" on non-Linux and Ruby 2.2+ lib/unicorn/http_request.rb | 42 +++++++++++++++++++---- lib/unicorn/http_server.rb | 6 ++-- lib/unicorn/oob_gc.rb | 4 +-- lib/unicorn/socket_helper.rb | 16 +++++++-- test/unit/test_ccc.rb | 81 ++++++++++++++++++++++++++++++++++++++++++++ test/unit/test_request.rb | 28 +++++++-------- 6 files changed, 150 insertions(+), 27 deletions(-) create mode 100644 test/unit/test_ccc.rb Also pushed to the ccc-tcp-v3 branch: The following changes since commit 73e1ce827faad59bfcaff0bc758c8255a5e4f747: t0011-active-unix-socket.sh: fix race condition in test (2017-03-01 00:24:04 +0000) are available in the git repository at: git://bogomips.org/unicorn ccc-tcp-v3 for you to fetch changes up to 873218e317773462be2a72556d26dc4a723cc7be: support "struct tcp_info" on non-Linux and Ruby 2.2+ (2017-03-08 05:39:55 +0000) ---------------------------------------------------------------- Eric Wong (3): new test for check_client_connection revert signature change to HttpServer#process_client support "struct tcp_info" on non-Linux and Ruby 2.2+ Simon Eskildsen (1): check_client_connection: use tcp state on linux lib/unicorn/http_request.rb | 73 ++++++++++++++++++++++++++++++++++++--- lib/unicorn/socket_helper.rb | 16 +++++++-- test/unit/test_ccc.rb | 81 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 163 insertions(+), 7 deletions(-) create mode 100644 test/unit/test_ccc.rb -- EW