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

Need for poll() on client within delay_tests #59

Open
1 of 3 tasks
tjhacker opened this issue Oct 8, 2021 · 0 comments
Open
1 of 3 tasks

Need for poll() on client within delay_tests #59

tjhacker opened this issue Oct 8, 2021 · 0 comments

Comments

@tjhacker
Copy link

tjhacker commented Oct 8, 2021

ISSUE TYPE
  • Bug Report
  • Enhancement/Feature Request
  • Question
VERSION DETAILS

SUMMARY

I found a problem in which the client would become frozen when the server crashed within the function delay_test(). I added a poll() call prior to the read to exit the program when the data was not available on the FD. I added the poll call in the WAITING loop right before this code:

rx_len = read(eth->intf.sock_fd,
eth->frm.rx_buffer,
eth->params.f_size_total);

STEPS TO REPRODUCE

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

No branches or pull requests

1 participant