m-lab / ndt

Network Diagnostic Tool
Other
11 stars 7 forks source link

Change the loop that calls read() to error out when it should #42

Closed pboothe closed 8 years ago

pboothe commented 8 years ago

Change the loop that calls read() to error out when select() returns an error and errno is not EINTR.

stephen-soltesz commented 8 years ago

I don't see bug with readn_raw, but it is more complex than it's write* counter parts. I'm also unclear why readn_ssl & readn_raw are implemented differently.

pboothe commented 8 years ago

PTAL

stephen-soltesz commented 8 years ago

LGTM.