[nanomsg] Expired nn_survey: deadline error mismatch

  • From: Daniel Hofmann <daniel@xxxxxxxx>
  • To: nanomsg@xxxxxxxxxxxxx
  • Date: Wed, 14 Jan 2015 21:37:20 +0100

From doc/nn_survey.txt [0]:
> When the survey deadline expires, receive will return ETIMEDOUT error.

But it seems to me the error is actually EFSM in this case, as it is
e.g. checked for in tests/survey.c [1].

Is the documentation wrong here? With nn_survey, when is the error EFSM
and when is it ETIMEDOUT (if at all)? Please clarify.

Thanks,
Daniel


[0]
https://github.com/nanomsg/nanomsg/blob/6a333ae616c9dd1893c2a47e2b5a8b52b433fa77/doc/nn_survey.txt#L23-L27

[1]
https://github.com/nanomsg/nanomsg/blob/6a333ae616c9dd1893c2a47e2b5a8b52b433fa77/tests/survey.c#L71

Other related posts: