From users-return-7287-archive-asf-public=cust-asf.ponee.io@trafficserver.apache.org Sat Oct 13 23:53:24 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id BD1F9180638 for ; Sat, 13 Oct 2018 23:53:23 +0200 (CEST) Received: (qmail 4287 invoked by uid 500); 13 Oct 2018 21:53:22 -0000 Mailing-List: contact users-help@trafficserver.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@trafficserver.apache.org Delivered-To: mailing list users@trafficserver.apache.org Received: (qmail 4277 invoked by uid 99); 13 Oct 2018 21:53:22 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 13 Oct 2018 21:53:22 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 2B1FFC25DB for ; Sat, 13 Oct 2018 21:53:22 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.397 X-Spam-Level: X-Spam-Status: No, score=0.397 tagged_above=-999 required=6.31 tests=[DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, KAM_NUMSUBJECT=0.5, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id AQDHmHrO23-g for ; Sat, 13 Oct 2018 21:53:21 +0000 (UTC) Received: from mail-it1-f172.google.com (mail-it1-f172.google.com [209.85.166.172]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 261C05F24A for ; Sat, 13 Oct 2018 21:53:21 +0000 (UTC) Received: by mail-it1-f172.google.com with SMTP id c85-v6so482667itd.1 for ; Sat, 13 Oct 2018 14:53:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=s9dsJsXlp0sRd8BnMW+OuCwoDYQzs1yPxS46ff8MhVA=; b=YGdaCuPiCDn4zNXCkaVbBM4YFoF4F9j2w7uff+Z4+S6kGYF6WOvFzPRAexWhA1TrZ0 F2l5M4dh7Ydyru0/Y3yASmZ7lIfJr3f53YKCts/DRZoMWRne4IST03M+eLwBSDuIHq2o nL0ogsVswuj3qJCxFLkpapCR8R/EmuMIBQbZViC0VZN7926fXkzJg4mSKDmjFM1v8gNp d/h9mqu40xM78dkup1Uy2fNC9bTA8f8lbRRW620hiyfCQYbGo1zQFU0D4XGev/9duB7J z+Eq/ouTXl120rBwyt0mzQHEQgR5aIDoXgykj1oj7K7Z8dz4hC5tFI20WcY7xrFAGrQJ ZX+A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=s9dsJsXlp0sRd8BnMW+OuCwoDYQzs1yPxS46ff8MhVA=; b=QdpfTCu3iFiB3EqiUaKTUsbSWSd5Ro/4J370xIsgEwm8y5rqpBp4xFsFjx+gqoAVMO VsvdKtFl5W/Eday6p5TQzx9Rd9Lzeg0S8b9gtnHmCyY8TZ3YAndgzAJhyZMA7Bvan9VP /r3qiAQRRt61mFezf3De0BfnVlxBweO08iV1cZjPEh7NCFX3/bNQh5IWlM681QZCcOOz 9GE7m5n5j1ro8u6m/XkAwYAxdrJbIAN2nYe8aFU8zo+Z1DWqnI+WKSxuPlTWz44voimR 5noSrCi2F4Dj0KQZjj6gFFYnO/afOvlo8EB2PJ/Pg53+BpsX7JEUSv6JOoK+qxd6J3ds zD4Q== X-Gm-Message-State: ABuFfoi6+/SwH1IMMlSYl5FRlTXheqc8c4/EfIGT8eryoVfeWYhSctnP NxS2+5YxVNhECfxPgriZ1I+n3hdh83tEAAO05x0mRwRI X-Google-Smtp-Source: ACcGV63DOeECzI/Cz+UmoD448BTl8E60f5N3V1t9ThqyKYDbfF2MoZmY6RPnKcb0lqOFufAKefuBVrk6F7KKfwp9Q8k= X-Received: by 2002:a24:fdc4:: with SMTP id m187-v6mr8454767ith.117.1539467600349; Sat, 13 Oct 2018 14:53:20 -0700 (PDT) MIME-Version: 1.0 References: <1539351218709-0.post@n7.nabble.com> In-Reply-To: <1539351218709-0.post@n7.nabble.com> From: Shu Kit Chan Date: Sat, 13 Oct 2018 14:53:09 -0700 Message-ID: Subject: Re: invalid VIA header in trafficserver 8.0 To: users@trafficserver.apache.org Content-Type: text/plain; charset="UTF-8" I think this is a bug. I just created a PR to fix it - https://github.com/apache/trafficserver/pull/4407 Also for one of your examples, you are missing an empty space at the end. So instead of this, bin/traffic_via "uScHs f p eN:t cCHp s" it should be bin/traffic_via "uScHs f p eN:t cCHp s " Of course it still wouldn't work unless with the fix. Thanks. Kit On Fri, Oct 12, 2018 at 6:33 AM Jin wrote: > > curl with -v reports: > > ... > < Via: http/1.1 cache02.company.com (ApacheTrafficServer/8.0.0 [uScHs f p > eN:t cCHp s ]) > ... > or > < Via: http/1.1 cache02.company.com (ApacheTrafficServer/8.0.0 > [uScMsSfWpSeN:t cCMp sS]) > > > However, the same version of traffic_via failed to parse the via code > > $ bin/traffic_via "[uScMsSfWpSeN:t cCMp sS]" > Via header is [uScMsSfWpSeN:t cCMp sS], Length is 24 > > Invalid VIA header. VIA header length should be 6 or 23 characters > Valid via header format is > [ucsfpe:tc type>ps] > > $ bin/traffic_via "uScHs f p eN:t cCHp s" > Via header is uScHs f p eN:t cCHp s, Length is 21 > > Invalid VIA header. VIA header length should be 6 or 23 characters > Valid via header format is > [ucsfpe:tc type>ps] > > > Could this be a bug or something? > > Thank you. > > Jin. > > > > -- > Sent from: http://apache-traffic-server.24303.n7.nabble.com/