fixed bug: close socket when ping() exit.
used parameter: size.
format code Astyle.
Merge pull request #286 from aozima/pulls

Pulls