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

Problem: can't close pipe in "expecting chunk" state #30

Closed
hintjens opened this issue Mar 28, 2014 · 2 comments · Fixed by #33
Closed

Problem: can't close pipe in "expecting chunk" state #30

hintjens opened this issue Mar 28, 2014 · 2 comments · Fixed by #33
Labels

Comments

@hintjens
Copy link
Member

Symptom: when doing a blocked read and EINTR occurs, the server state was stuck in expecting chunk, and would't accept a close command.

Duplicate of issue #26, I think.

@rpedde
Copy link
Contributor

rpedde commented Mar 31, 2014

Same for "expecting data" state as well, a read with a writer connected but no writes yet is in expecting data and won't honor a close.

More accurately, sequence of events is:

open read pipe
open write pipe
read one byte from the read pipe with no timeout -- blocks
send SIGALRM - read returns with EINTR
subsequent close on the read pipe blocks indefinitely

@hintjens
Copy link
Member Author

I need to refine the responses to a read then, so a close can return close-ok and the read can then return read-error.

hintjens added a commit to hintjens/zbroker that referenced this issue Apr 1, 2014
- Engine can now process PINGs while waiting for a READ to finish.

- Added extensive test cases to zpipes_server.c.

- Fixed zeromq#30 - can now close pipe while waiting for READ to finish.

- Fixed zeromq#26 - idle clients are disconnected (defaults to 60 seconds).
@hintjens hintjens added the Ready label Apr 1, 2014
@rpedde rpedde closed this as completed in #33 Apr 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants