On Tue, Jan 31, 2012 at 3:14 AM, Massimo Di Pierro
<[email protected]> 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