Hello, here is my problem : lets' assume that i connect to the following URL :
http://mysite/myapp/default/myfunc/param and that the myfunc function in default.py makes a call to a function f(param) which could take a long time depending on the value of param. I wan't to stop my function f() if it's time execution exceeds 3 seconds. In that case i wan't to send a flash message which contains the message "Time limit exceeded" Can you help me. I tried to use SIGALRM but wsgi does not allow to trap signals. I changed the default option in wsgi to catch SIGALRM but the i have an error which says that the signal function can only be used in the main thread which is the restricted.py script in gluon directory. Do i need to modify this script ? Thanks for your help -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/74d705f2-6d0a-44e4-87ad-717c7775367cn%40googlegroups.com.

