Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 13367200BCA for ; Mon, 21 Nov 2016 22:59:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 11ADE160AF9; Mon, 21 Nov 2016 21:59:00 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 36730160AEF for ; Mon, 21 Nov 2016 22:58:59 +0100 (CET) Received: (qmail 6844 invoked by uid 500); 21 Nov 2016 21:58:58 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 6822 invoked by uid 99); 21 Nov 2016 21:58:58 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Nov 2016 21:58:58 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 9B8A21A03A6 for ; Mon, 21 Nov 2016 21:58:57 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.879 X-Spam-Level: * X-Spam-Status: No, score=1.879 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id wpEQ3MpaWjiJ for ; Mon, 21 Nov 2016 21:58:55 +0000 (UTC) Received: from mail-ua0-f181.google.com (mail-ua0-f181.google.com [209.85.217.181]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id A78A35F47A for ; Mon, 21 Nov 2016 21:58:54 +0000 (UTC) Received: by mail-ua0-f181.google.com with SMTP id 20so238642694uak.0 for ; Mon, 21 Nov 2016 13:58:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc; bh=zqwby0HRBH865UBTUa6zfk7QK1QfYCaOhX3aFHkYiAk=; b=NkbIgBUb9/j6ajyQNs4qqMIAMWNSnEmAzTmSsnF778BAiMirsLY6Jk0JNeL4rxt7xw n7AcAr51iSGJ6QGf7Frh5LpT7Y5HOoZfJ3tiAADokJxa7Wiw2s5QWyb67rVr0DFyMyIF UgEn89h5kv0VWz975AZ5bw3TM7r6m52+/nxSBOtpKAxbIImqc1sOiPEeQpp54UfIEBqB pSgo+IV+PwdFb4M23jQcsZkGCzu5gBNGfFdoOcUTqKyKgY2shvsNUJqtbhMM7EFiVMkC rOJ5WmbJH2vEEJiccFU3IpX3cDOXUYBMEBNoSp535JlV4x1dVEKZjEXebtFagDZvFKrE K3ZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :from:date:message-id:subject:to:cc; bh=zqwby0HRBH865UBTUa6zfk7QK1QfYCaOhX3aFHkYiAk=; b=TzH4l6cqfHhLu39oDgs8mD03fxmfrFQ/Pf8q7SezD1aOjPBLjg+LwFFHbJnRCRTKxu fsA5VrGpd/sujOG5Y+3azw8m74fQnOez2GbbjhJxbZaq6cTXtCj+ZlLkr2zR58284jO/ 0sJQTuTM7w3bEaUwniIBsuyFSIzaZWrcQu/uFBrAJ3QUalpr+o2NFSe5SsD682rucA0d DZtQP3NHwBEBjWRlIqwi9o5QnIaizMaAQTAaIMqvCpLX8wYbSLa6WMNUaS283wRPLfmO 71I7yRqZFHxrYfXuTvPVCRjqguZe/MG5kAQTOChbvnCSIeT6SI8TbqDbafAoHeVoxgEK 5hsw== X-Gm-Message-State: AKaTC029SrlGnLpYtEwpIhtf8zCjSoM3GslVJghDXdWVCucPEepPYbOf0pcJWScey/R5AQzunM8uBuWqdZDr/A== X-Received: by 10.176.1.230 with SMTP id 93mr6847025ual.168.1479765508535; Mon, 21 Nov 2016 13:58:28 -0800 (PST) MIME-Version: 1.0 Received: by 10.176.82.236 with HTTP; Mon, 21 Nov 2016 13:58:08 -0800 (PST) Reply-To: fcarriedos@gmail.com In-Reply-To: References: <1474361787.3277.6.camel@apache.org> <1474399445.8467.29.camel@apache.org> <1474913458.25091.19.camel@apache.org> <1477936936.24268.9.camel@apache.org> From: Francisco Carriedo Scher Date: Mon, 21 Nov 2016 16:58:08 -0500 Message-ID: Subject: Re: Collaborate implementing HTTP 2.0 support - HTTPCORE-432 To: Gary Gregory Cc: HttpComponents Project Content-Type: multipart/alternative; boundary=001a1135de447cb9a30541d6c149 archived-at: Mon, 21 Nov 2016 21:59:00 -0000 --001a1135de447cb9a30541d6c149 Content-Type: text/plain; charset=UTF-8 I will have a look to it to get some insight and consider pros/cons. As I see it, automating tests against the most popular web servers would be something nice if there is a relatively clean way of doing it. 2016-11-21 13:17 GMT-05:00 Gary Gregory : > The only way to do that is to embed a server in the test or have the test > manage the life cycle of the external server. I've done that with Commons > VFS tests, so it's doable. > > Gary > > On Nov 20, 2016 7:35 PM, "Francisco Carriedo Scher" > wrote: > >> After having a look to the source code and the RFC, I would like to >> clarify >> a couple of things about the testing against popular web-servers. >> >> My first idea was to see if I could take some unit tests making requests >> to >> test servers as basis and generating new test classes pointing them >> instead >> to real running web-servers. However, after seeing the unit tests, my >> impression is that perhaps this might not be the best approach or at least >> complete/realistic enough. >> >> The intention of this testing is to test the library from a client >> perspective (as a client of the library I mean) in more real-world >> scenarios, not necessarily adding additional unit tests to the existing >> ones, right? >> >> Aside, should an issue in Jira be open for this in order to log and >> document versions and keep the worklog? >> >> Thanks, >> >> Francisco >> >> >> 2016-10-31 19:12 GMT+01:00 Francisco Carriedo Scher > >: >> >> > Yes, I find moving to Log4J2 the correct choice too, so leaving Gary >> work >> > on the migration without conflict. >> > >> > I will move then forward testing against popular HTTP/2 enabled servers. >> > >> > >> > 2016-10-31 14:02 GMT-04:00 Oleg Kalnichevski : >> > >> >> On Mon, 2016-10-31 at 05:46 +0100, Francisco Carriedo Scher wrote: >> >> > Hello, >> >> > >> >> > >> >> > Don't know if migrating to Log4J2 >> >> > (https://issues.apache.org/jira/browse/HTTPCORE-436) would override >> >> > the task I was working in (enabling debug logging on integration >> >> > tests). Anyway, as I don't know how long migrating might take and the >> >> > work was already done for httpcore5 module I have committed it to my >> >> > fork >> >> > (https://github.com/fcarriedos/httpcore/commit/46ba8b0c408cf >> >> b67d0ed6395c675b8bd2f6fa131). If you consider it correct and want me to >> >> extend it to the other modules, just say it. >> >> > >> >> >> >> Francisco >> >> >> >> This will certainly conflict with Gary's changes. I had no idea you >> were >> >> going to introduce Log4j as a dependency. What you have done looks >> >> perfectly fine to me but going forward we should be using Log4j2 given >> >> that it provides an abstract logging API with an option of using >> >> different logging back-ends. >> >> >> >> > >> >> > Question: I determined which packages to enable logging for with the >> >> > shell command below (output attached). To me this should find any >> >> > class needing to yield debug log lines. Could somebody comment on >> >> > this? (Correct, incorrect, suggestions?). Thanks! >> >> > $ httpcore/httpcore5$ reset && egrep -Ri "log" ./* | grep java | grep >> >> debug >> >> >> >> Looks correct to me. >> >> >> >> > DEADLOCK: when I completed this a month ago, enabling debug logging >> >> > resulted in a dead-lock in class "TestSyncHttp.java". This test class >> >> > is not present anymore and the deadlock does not appear now, but I >> >> > don't know if this could be another good reason to work on updating >> >> > the logging framework (HTTPCORE-436), as I dug a bit and looked like >> a >> >> > known issue for Log4J 1.2. I can reproduce the deadlock and provide >> >> > more detail if needed. >> >> > >> >> >> >> More reason to move to Log4j2. >> >> >> >> > Meanwhile I will have a look to testing the HTTP/2 transport with >> >> > popular web servers as you suggested. Please confirm if this is still >> >> > pending or somebody already is taking care of it. >> >> > >> >> >> >> I confirm. This is still by far more important than anything else. >> >> >> >> Oleg >> >> >> >> >> >> >> > >> > --001a1135de447cb9a30541d6c149--