[ZODB-Dev] [Where to submit bugs for ZODB3-3.1b1] - ZEO - Linux-only dependency??

Guido van Rossum guido@python.org
Tue, 24 Sep 2002 08:46:48 -0400


> > Thanks.  I've checked it in with your addition.
> 
> Ouch!! That's what happens from the habit to blame Windows.
> The important lines were:
> 
>             try:
>                 .... skipped
>             else:
>                 self.handle_error()
> 
> Seems to work better :) when changed to
>             except:
>                 self.handle_error()
> 
> The enhanced version is:
> 
>         while 1:
>             try:
>                 r, w, x = select.select(r_in, w_in, x_in, 0)
>             except select.error, err:
>                 if err[0] == errno.EINTR:
>                     continue
>                 else:
>                     raise
>             if not r:
>                 break
>             try:
>                 self.handle_read_event()
>             except asyncore.ExitNow:
>                 raise
>             except:
>                 self.handle_error()
> 
> 
> (Damn, the easier they are the harder it's to notice them
> sometimes)

Thanks for fixing this!  It was my bug (and an embarrassing one at
that. :-( )

--Guido van Rossum (home page: http://www.python.org/~guido/)