change some code
add realloc and fix send pipe broken problem
move http_disconnect to http_connect ok
Merge pull request #2 from yanshuyuan/yanshuyuan-dev

Yanshuyuan dev