recv works correctly