[zeromq-dev] About "E: unhandled error on recv: 11/Resource temporarily unavailable"

Martin Sustrik sustrik at 250bpm.com
Wed Oct 12 08:48:57 CEST 2011


Pieter,

> Occasionally, I encountered the error below using latest 2.1.10
>
> E: unhandled error on recv: 11/Resource temporarily unavailable.

It's caused by your patch from Sept 16th.

80b0041e (Pieter Hintjens 2011-09-16 10:33:24 -0500 226)     if (nbytes 
== 1)
80b0041e (Pieter Hintjens 2011-09-16 10:33:24 -0500 227)         fprintf 
(stderr, "E: unhandled error on recv: %d/%s\n",
80b0041e (Pieter Hintjens 2011-09-16 10:33:24 -0500 228) 
   errno, strerror (errno));

The patch should check for -1, not 1.

Moreover, it just duplicates what the line below already does:

errno_assert (nbytes != -1);

I would recomment reverting the patch.

Martin



More information about the zeromq-dev mailing list