fixed socket send/recv chain