From db830c4085540c187eb1605852143c89d93e444b Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Fri, 13 Apr 2018 08:38:40 -0700 Subject: [PATCH] bugdown: Replace link to old pre-open-source Zulip trac. --- zerver/lib/bugdown/__init__.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/zerver/lib/bugdown/__init__.py b/zerver/lib/bugdown/__init__.py index df48fa5941..a70fd30988 100644 --- a/zerver/lib/bugdown/__init__.py +++ b/zerver/lib/bugdown/__init__.py @@ -1962,9 +1962,11 @@ def do_convert(content: Text, } try: - # Spend at most 5 seconds rendering. - # Sometimes Python-Markdown is really slow; see - # https://trac.zulip.net/ticket/345 + # Spend at most 5 seconds rendering; this protects the backend + # from being overloaded by bugs (e.g. markdown logic that is + # extremely inefficient in corner cases) as well as user + # errors (e.g. a realm filter that makes some syntax + # infinite-loop). rendered_content = timeout(5, _md_engine.convert, content) # Throw an exception if the content is huge; this protects the