-
Notifications
You must be signed in to change notification settings - Fork 7
Change write() and read() function to send() and recv() #28
base: master
Are you sure you want to change the base?
Conversation
Replace the read() and write() function with send() and recv() in main.c, the flag is set to 0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A good commit message would explain why this change is happening - it's not at all clear why we would want to make this change right now. This is especially true because it breaks the test suite - that needs to pass.
My bad. I just want to use the CI function, and show what kind of error will happen when we replace those function. I did not want to change current program, but I think if we want to improve the test coverage we should figure out the bugs first. |
I asked Ke to improve our test coverage. Before he made larger changes, he was just going to swap the IO functions and ensure that everything still worked. It didn't. For some reason, clients fail when using send()/recv() instead of read()/write(). We need to find out why. |
@yingxiongraomingzk The problem with your patch is that your code now sends The following, brute-force, patch made the tests pass for me:
|
This should increase the test coverage to also cover send/recv. AlternativeTo: enarx-archive#28 Signed-off-by: Patrick Uiterwijk <[email protected]>
This PR is superseded by #31 . |
Replace the read() and write() function with send() and recv() in
main.c, the flag is set to 0.