Rank: Newbie Groups: Member
Joined: 6/12/2023 Posts: 4
|
Hello,
We've recently had a problem with EO.pdf with a really high impact on our users.
When we convert an html document to pdf, some timeout errors may happen. Usually, it throws an exception and we can handle this.
In some specific scenarios, the subsequent conversions also throw a timeout error, during several hours. We can solve it by manually killing all eo.pdf processes, but this cause hundreads of timeouts although the first one is the only problematic situation.
We'll try to figure out why this specific scenario occurs and i should be able to provide the html file that causes this.
In the mean time, can you help me to find how i can kill tasks that timeouted to ensure they do not affect other tasks from other users ?
Best Regards,
|
Rank: Newbie Groups: Member
Joined: 6/12/2023 Posts: 4
|
We investigated on this and we found that the specific scenario contains an infinite loop.
So you can reproduce the bug with this minimal file to transform to pdf :
<html><body> <div>Minimal example</div> <script> while(true){} </script> </body> </html>
If you do so, it causes timeouts on every other call to EO.Pdf.HtmlToPdf.ConvertHtml .
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,314
|
Hi,
But isn't it the designed behavior to time out when you have an infinite loop in your code? Or do you mean once you call ConvertHtml with the above code ONCE, then all subsequent ConvertHtml with normal HTML code will fail with time out as well?
Thanks!
|