fix ab test failure bug

1/ reuse buff for sending out;
2/ after write close the connection for http purpose.