public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Abner Chang" <abner.chang@hpe.com>
To: "Rabeda, Maciej" <maciej.rabeda@linux.intel.com>,
	"devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: Wu Jiaxin <jiaxin.wu@intel.com>, Fu Siyuan <siyuan.fu@intel.com>,
	"Wang, Nickle (HPS SW)" <nickle.wang@hpe.com>
Subject: Re: [PATCH] NetworkPkg/HttpDxe: TlsChildHandle is not cleared when reset
Date: Thu, 8 Oct 2020 13:50:21 +0000	[thread overview]
Message-ID: <CS1PR8401MB11440229F5896B8C6F9C30ADFF0B0@CS1PR8401MB1144.NAMPRD84.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <cc41c6d4-59c9-469f-33b7-7d53472f21e8@linux.intel.com>

Hi Maciej,
Could you please help to merge this patch? Thanks!
Abner

> -----Original Message-----
> From: Rabeda, Maciej [mailto:maciej.rabeda@linux.intel.com]
> Sent: Tuesday, September 29, 2020 9:47 PM
> To: Chang, Abner (HPS SW/FW Technologist) <abner.chang@hpe.com>;
> devel@edk2.groups.io
> Cc: Wu Jiaxin <jiaxin.wu@intel.com>; Fu Siyuan <siyuan.fu@intel.com>;
> Wang, Nickle (HPS SW) <nickle.wang@hpe.com>
> Subject: Re: [PATCH] NetworkPkg/HttpDxe: TlsChildHandle is not cleared
> when reset
> 
> Reviewed-by: Maciej Rabeda <maciej.rabeda@linux.intel.com>
> 
> On 28-Sep-20 08:29, Abner Chang wrote:
> > BZ #2909,
> > INVALID URI REMOVED
> > e.org_show-5Fbug.cgi-3Fid-
> 3D2909&d=DwICaQ&c=C5b8zRQO1miGmBeVZ2LFWg&r=_
> >
> SN6FZBN4Vgi4Ulkskz6qU3NYRO03nHp9P7Z5q59A3E&m=gVilLut38Vw51w0YX
> bkL2XI7A
> > ieZI7M-
> u7_bYls4zQo&s=eavHqEkeSVmQnn5EYDmq9TnEyjp8MS3_hdpPDgG9hSY&e=
> >
> > When Http->Configure() is invoked with HttpConfigData set to NULL to
> > reset the EFI HTTP instance, TLS child instance is destroyed but
> > HttpInstance->TlsChildHandle is not set to NULL. After reconfiguring
> > HTTP through Http->Configure() and sending the HTTP request to HTTPS
> > URL, TLS child instance is not recreated because
> > HttpInstance->TlsChildHandle is not NULL.
> >
> > Signed-off-by: Abner Chang <abner.chang@hpe.com>
> >
> > Cc: Maciej Rabeda <maciej.rabeda@linux.intel.com>
> > Cc: Wu Jiaxin <jiaxin.wu@intel.com>
> > Cc: Fu Siyuan <siyuan.fu@intel.com>
> > Cc: Nickle Wang <nickle.wang@hpe.com>
> > ---
> >   NetworkPkg/HttpDxe/HttpProto.c | 1 +
> >   1 file changed, 1 insertion(+)
> >
> > diff --git a/NetworkPkg/HttpDxe/HttpProto.c
> > b/NetworkPkg/HttpDxe/HttpProto.c index 3c7c6ff9f0c..afc7db5a726
> 100644
> > --- a/NetworkPkg/HttpDxe/HttpProto.c
> > +++ b/NetworkPkg/HttpDxe/HttpProto.c
> > @@ -873,6 +873,7 @@ HttpCleanProtocol (
> >       // Destroy the TLS instance.
> >       //
> >       HttpInstance->TlsSb->DestroyChild (HttpInstance->TlsSb,
> > HttpInstance->TlsChildHandle);
> > +    HttpInstance->TlsChildHandle = NULL;
> >     }
> >
> >     if (HttpInstance->Tcp4ChildHandle != NULL) {


  reply	other threads:[~2020-10-08 13:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-28  6:29 [PATCH] NetworkPkg/HttpDxe: TlsChildHandle is not cleared when reset Abner Chang
2020-09-28  7:21 ` Wu, Jiaxin
2020-09-29 13:46 ` Maciej Rabeda
2020-10-08 13:50   ` Abner Chang [this message]
2020-10-08 16:17     ` [edk2-devel] " Maciej Rabeda
     [not found]     ` <163C10A7913BC273.18560@groups.io>
2020-10-09  9:38       ` Maciej Rabeda
2020-10-09 10:09         ` Abner Chang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CS1PR8401MB11440229F5896B8C6F9C30ADFF0B0@CS1PR8401MB1144.NAMPRD84.PROD.OUTLOOK.COM \
    --to=devel@edk2.groups.io \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox