Ooops, sorry my mistake. I've changed KeepAliveTimeOut to 250 Timeout is 300 =) I've changed KeepAliveTimeOut and it worked, but in my computer KeepAlive... is 15 and works ;/
On Sun, Feb 12, 2012 at 10:33 PM, Graham Dumpleton < [email protected]> wrote: > The default is 300. Why had you changed it anyway? > > Graham > > On 13 February 2012 10:44, Phyllipe Medeiros <[email protected]> > wrote: > > I've changed my apache2.conf: > > Timeout was 15 > > Now I've changed to 250 and it is working now! > > > > > > On Sun, Feb 12, 2012 at 7:43 PM, Phyllipe Medeiros < > [email protected]> > > wrote: > >> > >> The "except" part is not being executed, I do not get "Exception :(" and > >> now I've putted this import sys > >> import traceback > >> traceback.print_exception(*sys.exc_info()) > >> But nothing has appeared on error log ;/ > >> > >> > >> On Sun, Feb 12, 2012 at 7:37 PM, Graham Dumpleton > >> <[email protected]> wrote: > >>> > >>> On 13 February 2012 08:30, Phyllipe Medeiros <[email protected]> > >>> wrote: > >>> > I have made this class: > >>> > "class Teste(Thread): > >>> > def __init__(self): > >>> > Thread.__init__(self) > >>> > def run(self): > >>> > try: > >>> > print "Begin" > >>> > from httplib2 import Http > >>> > import time > >>> > time.sleep(20) > >>> > print "PASSED SLEEP" > >>> > response, content = Http().request("http://www.spoj.pl") > >>> > print "OUT" > >>> > except: > >>> > >>> Within the except add: > >>> > >>> import sys > >>> import traceback > >>> traceback.print_exception(*sys.exc_info()) > >>> > >>> If you aren't going to re raise the exception, then how else are you > >>> going to know what the actual problem is. > >>> > >>> Graham > >>> > >>> > print "EXCEPTION :(" > >>> > " > >>> > Then I have a view that calls Teste().start(), the message that I > >>> > receive on > >>> > error log is only "BEGIN". > >>> > But if I do no use a thread, the "error log" will work correctly > >>> > "Begin, > >>> > PASSED SLEEP" and "OUT". > >>> > I think it is something related to Apache2/Mod_wsgi or even > permissions > >>> > in > >>> > my system, because if run it with sudo using runserver it will work > >>> > perfectly. > >>> > In my house it works perfectly too. > >>> > > >>> > > >>> > > >>> > -- > >>> > You received this message because you are subscribed to the Google > >>> > Groups > >>> > "modwsgi" group. > >>> > To post to this group, send email to [email protected]. > >>> > To unsubscribe from this group, send email to > >>> > [email protected]. > >>> > For more options, visit this group at > >>> > http://groups.google.com/group/modwsgi?hl=en. > >>> > >>> -- > >>> You received this message because you are subscribed to the Google > Groups > >>> "modwsgi" group. > >>> To post to this group, send email to [email protected]. > >>> To unsubscribe from this group, send email to > >>> [email protected]. > >>> For more options, visit this group at > >>> http://groups.google.com/group/modwsgi?hl=en. > >>> > >> > > > > -- > > You received this message because you are subscribed to the Google Groups > > "modwsgi" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]. > > For more options, visit this group at > > http://groups.google.com/group/modwsgi?hl=en. > > -- > You received this message because you are subscribed to the Google Groups > "modwsgi" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/modwsgi?hl=en. > > -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
