Discussion:
[zeromq-dev] About "E: unhandled error on recv: 11/Resource temporarily unavailable"
Thomas
2011-10-12 02:43:01 UTC
Permalink
Occasionally, I encountered the error below using latest 2.1.10

E: unhandled error on recv: 11/Resource temporarily unavailable.

I did not encounter this error before using 2.1.7
I have glanced the code.
This code fragment below is added in tcp_socket.cpp in 2.1.10 version while it
is not in 2.1.7.
if (nbytes == 1)
fprintf (stderr, "E: unhandled error on recv: %d/%s\n",
errno, strerror (errno));

Should this error be addressed?

Thanks!
Martin Sustrik
2011-10-12 06:48:57 UTC
Permalink
Pieter,
Post by Thomas
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
Pieter Hintjens
2011-10-12 10:52:45 UTC
Permalink
Post by Martin Sustrik
I would recomment reverting the patch.
Indeed. That should never have gotten into the release... :/

Thomas, I've pushed a fix to https://github.com/zeromq/zeromq2-1, can
you verify that it works better?

-Pieter
Thomas
2011-10-13 04:14:00 UTC
Permalink
On Wed, Oct 12, 2011 at 1:48 AM,
Post by Martin Sustrik
I would recomment reverting the patch.
Indeed. That should never have gotten into the release... :/
Thomas, I've pushed a fix to https://github.com/zeromq/zeromq2-1, can
you verify that it works better?
-Pieter
Hi Pieter,
My application is going to be launched in December.
Which stable version you suggest using?
Pieter Hintjens
2011-10-13 16:27:46 UTC
Permalink
Post by Thomas
My application is going to be launched in December.
Which stable version you suggest using?
Use the 2-1 master now, we'll make a new stable release in a couple of weeks.

-Pieter

Loading...