use shutdown instead of close function to stop socket.

1:Fixed a bug that do not change the http request header.

Signed-off-by: vulcan.lin <ssjmhyvi@gmail.com>