From 8cd0b4c1e340595468ef320bda571a96758ded0e Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Wed, 30 Jul 2014 11:18:54 +0000 Subject: [PATCH] Web: Increase timeout to 10 and improve error message. --- plugins/Web/plugin.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/Web/plugin.py b/plugins/Web/plugin.py index b95f97494..a794de673 100644 --- a/plugins/Web/plugin.py +++ b/plugins/Web/plugin.py @@ -92,10 +92,11 @@ def fetch_sandbox(f): def newf(self, irc, *args): try: replies = commands.process(process, self, irc, *args, - timeout=5, heap_size=1024*1024, + timeout=10, heap_size=1024*1024, pn=self.name(), cn=f.__name__) except commands.ProcessTimeoutError: - raise utils.web.Error(_('Page is too big.')) + raise utils.web.Error(_('Page is too big or the server took ' + 'too much time to answer the request.')) else: for (method, args, kwargs) in replies: getattr(irc, method)(*args, **kwargs)