add SO_REUSEADDR option of sockfd
when send data to php-cgi, You MUST ADD \n add the end of string , when you read data from php-cgi through PHP_NORMAL_READ type