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

Ury Marshak um@hottech-israel.com
Tue, 24 Sep 2002 14:29:12 +0200


> 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)

Ury