NetworkPkg: Avoid memory allocation for each HTTP message exchange.
This patch updates the HTTP driver to use a shared buffer for URL parsing to avoid memory allocation for each HTTP request. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu Siyuan <siyuan.fu@intel.com> Reviewed-by: Ye Ting <ting.ye@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18449 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -51,6 +51,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
#define HTTP_KEEP_ALIVE_TIME 7200
|
||||
#define HTTP_KEEP_ALIVE_INTERVAL 30
|
||||
|
||||
#define HTTP_URL_BUFFER_LEN 4096
|
||||
|
||||
typedef struct _HTTP_SERVICE {
|
||||
UINT32 Signature;
|
||||
EFI_SERVICE_BINDING_PROTOCOL ServiceBinding;
|
||||
@@ -120,6 +122,8 @@ typedef struct _HTTP_PROTOCOL {
|
||||
|
||||
NET_MAP TxTokens;
|
||||
NET_MAP RxTokens;
|
||||
|
||||
CHAR8 *Url;
|
||||
} HTTP_PROTOCOL;
|
||||
|
||||
typedef struct {
|
||||
|
Reference in New Issue
Block a user