NuxiNL / cloudlibc

CloudABI's standard C library
BSD 2-Clause "Simplified" License
295 stars 17 forks source link

Add two tests for checking if read() and recv() handle EOF on close/shutdown correctly. #10

Closed sgielen closed 6 years ago

sgielen commented 6 years ago

I found out that this behaviour was incorrect on Cosix, even though all relevant tests were succeeding. There are existing tests for checking this behaviour with poll(), but none yet for a blocking read() and recv(). Perhaps we'll want to add symmetric tests for write() and send() as well.

Verified by re-introducing the same bug into Cosix and confirming that the tests do fail.

sgielen commented 6 years ago

@EdSchouten patch is updated!