ProxymanApp / Proxyman

Modern. Native. Delightful Web Debugging Proxy for macOS, iOS, and Android ⚡️
https://proxyman.io
5.57k stars 185 forks source link

[BUG] Huge Memory Leak when fetching a remote certificate #2070

Open NghiaTranUIT opened 3 months ago

NghiaTranUIT commented 3 months ago

Description

To generate a server certificate with Proxyman CA, Proxyman will try to connect to the request server to fetch the certificate info -> Then use it to generate the self-signed certificate.

This feature is important because it can have the same certificate data as the Real Certificate, such as SNI, IPs, Common Name, ...

However, It leaks a huge of memory. We confirmed it.

Screenshot 2024-07-03 at 14 25 28

Steps to Reproduce

  1. Enable SSL Proxying for Google Chrome
  2. Open Profile Memory Leaks
  3. Reload a bunch of websites on Google Chrome

Current Behavior

Expected Behavior

NghiaTranUIT commented 3 months ago

Fixed: https://download.proxyman.io/beta/Proxyman_5.5.0_Fix_memory_leaking.dmg

Screenshot 2024-07-03 at 8 47 20 PM