fix send() and recv() when version == 3