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=-3.1 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, RP_MATCHES_RCVD,URIBL_BLOCKED shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: yahns-public@yhbt.net Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 45F96202E9 for ; Fri, 12 Feb 2016 01:47:25 +0000 (UTC) From: Eric Wong To: yahns-public@yhbt.net Subject: [PATCH 0/3] TLS fixes Date: Fri, 12 Feb 2016 01:47:10 +0000 Message-Id: <20160212014713.32163-1-e@80x24.org> List-Id: The big thing is sendfile(2) got mis-called when using TLS-wrapped sockets. This still needs to be documented better, but https://yhbt.net/ is up-and-running for now. Things like rack.url_scheme, SERVER_NAME, SERVER_PORT, etc... will all need to be set properly. lib/yahns/acceptor.rb | 2 +- lib/yahns/sendfile_compat.rb | 4 ---- lib/yahns/server.rb | 9 ++++++++- lib/yahns/wbuf_common.rb | 1 + test/test_ssl.rb | 25 ++++++++++++++++++++++++- 5 files changed, 34 insertions(+), 7 deletions(-)