Skip to content

Conversation

@cmcfarlen
Copy link
Contributor

This adds the rule of 5 functions to ProxyProtocol to allow safe copy construction and assignment.
It also avoids a memory leak of the use of ProxyProtocol in HttpTransaction::State where it wasn't getting destructed (HttpSM has a State and is class allocated without the flag to run the destructor).

#12676 will fix the memory leak in a different way, but the rule of 5 is still needed where ProxyProtocol is copied.

@cmcfarlen cmcfarlen added this to the 10.2.0 milestone Nov 20, 2025
@cmcfarlen cmcfarlen requested a review from maskit November 20, 2025 19:45
@cmcfarlen cmcfarlen self-assigned this Nov 20, 2025
@cmcfarlen cmcfarlen added the Leak label Nov 20, 2025
#pragma once

#include "tscore/ink_memory.h"
#include <filesystem>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What needs this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

idk why my editor things filesystem is needed in this file... I'll clean that up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants