You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We received some SPAM e-mails and when we will be process the content to inline CSS, the process uses a lot CPU and sometimes break down the Web Server.
When investigate to find what step of process break down, we found the problem on Inline CSS step, because the content has ~1.5 mb of style tag and only ~7kb of other contents.
Details
Premailer version: 2.4.0 Dotnet Framework: 4.8 ( we can't change to dotnet 5 :-/ )
Performance measured (dotnet Benchmark)
How to simulate
// Import the attached file.varbaseHtml=System.IO.File.ReadAllText("spam-big-style.html",Encoding.UTF8);// Same process used when created the benchmark.varresultHtml=PreMailer.Net.PreMailer.MoveCssInline(baseHtml,true,"link",null,true,true).Html;
The problem
We received some SPAM e-mails and when we will be process the content to inline CSS, the process uses a lot CPU and sometimes break down the Web Server.
When investigate to find what step of process break down, we found the problem on Inline CSS step, because the content has ~1.5 mb of style tag and only ~7kb of other contents.
Details
Premailer version: 2.4.0
Dotnet Framework: 4.8 ( we can't change to dotnet 5 :-/ )
Performance measured (dotnet Benchmark)
How to simulate
Files
Attached one of the SPAM email received:
spam-big-style.zip
The text was updated successfully, but these errors were encountered: