I found two issues so far with socket.c source code
my file version is: <2014/05/01> V1.0.3. Refer to M20140501
sock_io_mode issue: I was expecting that this flag be cleaned when you close the socket.
The other issue is related with recv
In block io mode, it doesn’t return until data reception is completed - data is filled as len in socket buffer.
but what is implemented is that it will return as soon as it get any data:
if(recvsize != 0) break;
I think this code need review.