From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.126; helo=mga18.intel.com; envelope-from=jiaxin.wu@intel.com; receiver=edk2-devel@lists.01.org Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id C84E6210C125A for ; Mon, 6 Aug 2018 01:05:27 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Aug 2018 01:05:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,451,1526367600"; d="scan'208";a="80965436" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by orsmga002.jf.intel.com with ESMTP; 06 Aug 2018 01:05:20 -0700 Received: from fmsmsx155.amr.corp.intel.com (10.18.116.71) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 6 Aug 2018 01:05:20 -0700 Received: from shsmsx152.ccr.corp.intel.com (10.239.6.52) by FMSMSX155.amr.corp.intel.com (10.18.116.71) with Microsoft SMTP Server (TLS) id 14.3.319.2; Mon, 6 Aug 2018 01:05:20 -0700 Received: from shsmsx103.ccr.corp.intel.com ([169.254.4.100]) by SHSMSX152.ccr.corp.intel.com ([169.254.6.173]) with mapi id 14.03.0319.002; Mon, 6 Aug 2018 16:05:18 +0800 From: "Wu, Jiaxin" To: Sivaraman Nainar , "Ye, Ting" , Laszlo Ersek , "edk2-devel@lists.01.org" Thread-Topic: [edk2] reg: HTTP Request Failure over Internet Thread-Index: AdQjRfAWnSCx4+HvRV6Kq9SvrqNFLf//hc4A//41h0D//FOIIP/vwuJA/9it8vD/rlR1cA== Date: Mon, 6 Aug 2018 08:05:18 +0000 Message-ID: <895558F6EA4E3B41AC93A00D163B72741647B49D@SHSMSX103.ccr.corp.intel.com> References: <895558F6EA4E3B41AC93A00D163B727416479D8A@SHSMSX103.ccr.corp.intel.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOWNjM2UxZTYtZmRlOC00MzgxLWFiNTYtMmQ3ODlhOTA0MjdmIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE3LjEwLjE4MDQuNDkiLCJUcnVzdGVkTGFiZWxIYXNoIjoiYXpQRHRNemRBVHErNVNZaHIrMlpzeGxSMzdzdlpoNEFYa3ByVmlNdFZHVlVMb0ZDQzFWQ3h6clp0R0s2WFhudCJ9 x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.400.15 dlp-reaction: no-action x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: reg: HTTP Request Failure over Internet X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Aug 2018 08:05:28 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Is there any proxy or firewall block the connection? Once you set the stati= c Ip4Gateway via ifconfig shell command, please try to ping the gateway/rem= ote address to check the connection. Thanks, Jiaxin > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of > Sivaraman Nainar > Sent: Saturday, August 4, 2018 5:46 PM > To: Wu, Jiaxin ; Ye, Ting ; Laszl= o > Ersek ; edk2-devel@lists.01.org > Subject: Re: [edk2] reg: HTTP Request Failure over Internet >=20 > Hello Jiaxin, >=20 > We have tried both the methods and both failed. Do you have any other > recommendation? >=20 > -Siva > -----Original Message----- > From: Wu, Jiaxin [mailto:jiaxin.wu@intel.com] > Sent: Tuesday, July 31, 2018 7:14 AM > To: Sivaraman Nainar; Ye, Ting; Laszlo Ersek; edk2-devel@lists.01.org > Subject: RE: [edk2] reg: HTTP Request Failure over Internet >=20 > Hi Siva, >=20 > Thanks the report. >=20 > From the code review, it does the problem for HTTP protocol to route the > package over Internet. >=20 > But I'm confused with your patch that how can you get the RouterAddr sinc= e > there is no interface for HTTP protocol to get the RouterAddr? >=20 > > + HttpInstance->Tcp4->Routes ( > > + HttpInstance->Tcp4, > > + FALSE, > > + &HttpInstance->RemoteAddr, > > + &Tcp4AP->SubnetMask, > > + &HttpInstance->RouterAddr > > + ); > > + >=20 > So, I prefer it's the UEFI Spec limitation that HTTP protocol doesn't pro= vide us > the interface to set the router info instead of setting it during HTTP > configuration. To mitigate the issue, below two solution/workaround can = be > tried: > 1) Ip4Config2 protocol can be leveraged by your HTTP application to regis= ter > one valid Ip4Gateway into the default route table (just like HttpBootDxe = -- > HttpBootRegisterIp4Gateway()). The IP policy will route the packet by usi= ng > the instance's route table first, if not found, the default route table w= ill be > tried. > 2) Set the static Ip4Gateway via ifconfig shell command. The Ip4Gateway > address also will be set to default route table. >=20 > Thanks, > Jiaxin >=20 >=20 >=20 > > -----Original Message----- > > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of > > Sivaraman Nainar > > Sent: Wednesday, July 25, 2018 5:29 PM > > To: Ye, Ting ; Laszlo Ersek ; > > edk2- devel@lists.01.org > > Subject: Re: [edk2] reg: HTTP Request Failure over Internet > > > > Ting: > > > > Please find the patch for reference. > > > > Index: HttpProto.c > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D > > =3D=3D=3D=3D=3D=3D=3D=3D=3D > > --- HttpProto.c > > +++ HttpProto.c > > @@ -622,12 +622,20 @@ > > Status =3D HttpInstance->Tcp4->Configure (HttpInstance->Tcp4, > Tcp4CfgData); > > if (EFI_ERROR (Status)) { > > DEBUG ((EFI_D_ERROR, "HttpConfigureTcp4 - %r\n", Status)); > > return Status; > > } > > > > + HttpInstance->Tcp4->Routes ( > > + HttpInstance->Tcp4, > > + FALSE, > > + &HttpInstance->RemoteAddr, > > + &Tcp4AP->SubnetMask, > > + &HttpInstance->RouterAddr > > + ); > > + > > Status =3D HttpCreateTcp4ConnCloseEvent (HttpInstance); > > if (EFI_ERROR (Status)) { > > return Status; > > } > > > > Status =3D HttpCreateTcp4TxEvent (Wrap); > > > > -Siva > > -----Original Message----- > > From: Ye, Ting [mailto:ting.ye@intel.com] > > Sent: Wednesday, July 25, 2018 1:36 PM > > To: Laszlo Ersek; Sivaraman Nainar; edk2-devel@lists.01.org > > Subject: RE: [edk2] reg: HTTP Request Failure over Internet > > > > Hi Siva, > > > > I didn't receive your patch either. Thanks for reporting the issue, we > > will try to reproduce it firstly. > > > > Thanks, > > Ting > > > > -----Original Message----- > > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of > > Laszlo Ersek > > Sent: Tuesday, July 24, 2018 8:43 PM > > To: Sivaraman Nainar ; > > edk2-devel@lists.01.org > > Subject: Re: [edk2] reg: HTTP Request Failure over Internet > > > > On 07/24/18 14:05, Sivaraman Nainar wrote: > > > Hello all, > > > > > > When an application tried to download the remote file over internet > > > with > > the HTTP Get Request it getting failed. If we try via the Intranet > > then application downloads the target file. > > > > > > The remote file is available in the Apache server. With the attached > > > patch > > the download works fine in Internet and Intranet. > > > > > > Could you review the solution and feedback? > > > > The edk2-devel list software does not reflect attachments to subscriber= s. > > > > While I disagree with that practice in general -- it breaks > > conversations where people justifiedly post small attachments, such as > > PNG screenshots, compressed log files and such --, for posting patches > > specifically, please use git-format-patch and git-send-email. The > > patch should be in the body of the email (please do not copy&paste the > > patch though; that is guaranteed not to work -- please use the git tool= s). > > > > Official guidelines: > > > > https://github.com/tianocore/tianocore.github.io/wiki/EDK-II-Developme > > nt- > > Process > > > > Personal ones from yours truly: > > > > https://github.com/tianocore/tianocore.github.io/wiki/Laszlo's-unkempt > > -git- guide-for-edk2-contributors-and-maintainers > > > > Thanks, > > Laszlo > > _______________________________________________ > > edk2-devel mailing list > > edk2-devel@lists.01.org > > https://lists.01.org/mailman/listinfo/edk2-devel > > _______________________________________________ > > edk2-devel mailing list > > edk2-devel@lists.01.org > > https://lists.01.org/mailman/listinfo/edk2-devel > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel