I agree. In particular considering this:

https://groups.google.com/group/web2py/browse_thread/thread/d7f6faddb841790b/3ef04bd25c5b81b1#3ef04bd25c5b81b1

On Jan 31, 4:00 am, Ricardo Pedroso <rmdpedr...@gmail.com> wrote:
> On Tue, Jan 31, 2012 at 3:14 AM, Massimo Di Pierro
>
>
>
>
>
>
>
>
>
> <massimo.dipie...@gmail.com> wrote:
> > Specifically it waits for the socket timeout of 60 seconds here:
>
> > rocket.py line 1063:
> >        # Wait until they pull the
> > trigger
> >        for t in self.threads:
> >            if t.isAlive():
> >                t.join()
>
> > I feel it is ok to have the timeout set to 60secs but not here. I have
> > not yet found a way to change the timeout at this point.
> > I tried
>
> > rocket.py line 1063:
> >        # Wait until they pull the
> > trigger
> >        for t in self.threads:
> >            if t.isAlive():
> >                t.conn.socket.settimeout(1) #<<<<
> >                t.join()
>
> > but it did not change a thing.
>
> Instead of trying to change the timeout, probably is better to
> force the shutdown, something like:
>
>             if t.isAlive():
>                 try:
>                     t.conn.socket.shutdown(socket.SHUT_RDWR)
>                 except socket.error:
>                     pass
>                 t.join()
>
> But can be wised to ask Tim is opinion about this.
>
> Ricardo

Reply via email to