Welcome Guest Search | Active Topics | Sign In | Register

Timeout causes other executions to timeout too Options
Nicolas Viard
Posted: Tuesday, March 25, 2025 5:39:43 AM
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,
Nicolas Viard
Posted: Tuesday, March 25, 2025 10:42:31 AM
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 .
eo_support
Posted: Tuesday, March 25, 2025 11:49:27 AM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.