[Infrastructures] ISconf: Cache.py - bcast method
Ceri Davies
ceri@submonkey.net
Tue, 20 Dec 2005 09:05:03 +0000
--cDtQGJ/EJIRf/Cpq
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Tue, Dec 20, 2005 at 07:21:08AM +0100, Tarjei.Jensen@akerkvaerner.com wr=
ote:
>=20
> Jordan Curzon wrote:
> > Keeps crashing on me on the last line of the bcast method in Cache.py.
> > It throws a socket.error exception with the EAGAIN error. I
> > did some looking and other places in the code ignore that
> > error. I trapped the exception and everything runs fine.
> >
> > Is that a bug or am I misunderstanding things.
>=20
> EAGAIN just means that your script have been waiting/listening to a
> socket for so long that the operating system have decided that you have
> waited long enough.
Or more generally, that the operation failed due to a resource shortage,
but might work if retried.
> It is one of the design faults in Unix. They moved a system problem into
> the user domain instead of solving it in the kernel.
Allowing the user to decide what to do next makes perfect sense to me.
The other option is to have a default action which we'd all be
complaining about the existence of. :)
Ceri
--=20
Only two things are infinite, the universe and human stupidity, and I'm
not sure about the former. -- Einstein (attrib.)
--cDtQGJ/EJIRf/Cpq
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)
iD8DBQFDp8k/ocfcwTS3JF8RAlyEAJ48mkKCichBO2hM7588CHYhBJayVACfUEpS
LCPLKW0eEos8IdFC7lUBC7c=
=Ng9P
-----END PGP SIGNATURE-----
--cDtQGJ/EJIRf/Cpq--