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

socket: handle count == 0 in rpc_read_from_socket #121

Merged
merged 1 commit into from
Aug 4, 2015

Conversation

plieven
Copy link
Contributor

@plieven plieven commented Aug 4, 2015

An EOF is signalled through a POLLIN event and subsequen recvs return
always 0. Handle this condition and reconnect. Otherwise we might
deadlock here.

Signed-off-by: Peter Lieven pl@kamp.de

An EOF is signalled through a POLLIN event and subsequen recvs return
always 0. Handle this condition and reconnect. Otherwise we might
deadlock here.

Signed-off-by: Peter Lieven <pl@kamp.de>
sahlberg added a commit that referenced this pull request Aug 4, 2015
socket: handle count == 0 in rpc_read_from_socket
@sahlberg sahlberg merged commit e466dc6 into sahlberg:master Aug 4, 2015
@sahlberg
Copy link
Owner

sahlberg commented Aug 4, 2015

Ah, yes.
We forgot to add this when we removed the ioctl(FIONREAD) call from the tcp path.

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

Successfully merging this pull request may close these issues.

2 participants