[zeromq-dev] Resource temporarily unavailable

Martin Sustrik sustrik at 250bpm.com
Wed Jan 18 15:03:11 CET 2012


Hi John,

>> I am getting this error (I think, its actually code 35 on OSX) on hwserver/hwclient.

Do you know which function returns the error?

>> Stackoverflow reckons this is EAGAIN and I should try again, but I think not,
>> I think it's the socket persisting, and I need to set
>>
>> SO_REUSEADDR
>>
>> on the socket (only, 0MQ doesn't support that option).
>> It could also be some other bug (the code worked before, doesn't now,
>> even with the port addresses changed to avoid a locked up port).

0MQ sets SO_REUSEADDR on all bound sockets.

> Hmm .. now I try with zmq_strerror and something different happens:
>
> ~/felix>./hwserver
> hwserver, Felix version
> 156384763 Operation cannot be accomplished in current state

That means you've sent two subsequent message to a REQ socket, instead 
of waiting for a reply, or a similar problem.

>
> The previous error I reported was probably spurious, because I did
>
> exit(errno)
>
> and exit only allows small values I think (0 to 255). But the residual here is
> 251 .. not 35 .. hmm .. grrr :)

Martin



More information about the zeromq-dev mailing list