Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Recieve Method for socket Type Sub? #12

Closed
wajahat414 opened this issue Oct 6, 2022 · 10 comments
Closed

No Recieve Method for socket Type Sub? #12

wajahat414 opened this issue Oct 6, 2022 · 10 comments

Comments

@wajahat414
Copy link
Contributor

No description provided.

@wajahat414
Copy link
Contributor Author

Screen Shot 2022-10-06 at 1 52 02 PM

while listening to the subscription got this error?

@wajahat414
Copy link
Contributor Author

Also The package Does not catches ZMQ exception? what about that?Like if I put Listen Code in try catch it does not catches the exception so I can not respond to exception thown by the library identify the exception,

@enwi
Copy link
Owner

enwi commented Oct 7, 2022

The Exception is thrown here

_checkReturnCode(rc, ignore: [EAGAIN]);

As far as I see it EINTR can be irgnored here. According to the ZGuide

If your code is blocking in a blocking call (sending a message, receiving a message, or polling),
then when a signal arrives, the call will return with EINTR.

@wajahat414
Copy link
Contributor Author

yeah I saw it , when I ignore it works fine

@enwi
Copy link
Owner

enwi commented Oct 7, 2022

Though since I updated the binaries EINTR gets thrown seemingly random, even when calling connect on a socket

@wajahat414
Copy link
Contributor Author

You mergeed changes it to main?

@enwi
Copy link
Owner

enwi commented Oct 7, 2022

#11 (comment)

@wajahat414
Copy link
Contributor Author

okay..also add an example check for error code and ignore it,

@wajahat414
Copy link
Contributor Author

so is it done?

@enwi
Copy link
Owner

enwi commented Nov 2, 2022

Done with 9a094e1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants