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

use select instead of timeouts #3

Open
awilfox opened this issue Nov 1, 2014 · 0 comments
Open

use select instead of timeouts #3

awilfox opened this issue Nov 1, 2014 · 0 comments

Comments

@awilfox
Copy link
Member

awilfox commented Nov 1, 2014

also, the read loops and write loops are duplication and unnecessary.

  • POST's read loop doesn't check for NULL on realloc, potentially segfaulting.
  • GET's read loop doesn't check for purposeful cancellation and treats that as an error condition
  • GET's write loop doesn't report errors if they occur, just return NULL

it's all broken crap and needs major refactoring.

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

1 participant