fixbug: recv returns 0 as the size parameter is set 0