master_ctld: support GET for checking port if service is aliving

This commit is contained in:
zsx 2018-02-12 15:47:57 +08:00
parent 0c5221bea8
commit db00ae6f17
2 changed files with 9 additions and 2 deletions

View File

@ -76,7 +76,11 @@ bool http_servlet::doOther(acl::HttpServletRequest&,
bool http_servlet::doGet(acl::HttpServletRequest& req,
acl::HttpServletResponse& res)
{
return doPost(req, res);
res.setContentType("text/plain")
.setKeepAlive(req.isKeepAlive());
acl::string body("ok\r\n");
return reply(req, res, 200, body);
}
bool http_servlet::doPost(acl::HttpServletRequest& req,

View File

@ -1,7 +1,7 @@
Summary: The powerful c/c++ library and server framework
Name: acl-libs
Version: 3.3.0
Release: 71
Release: 72
Group: System/Libs
License: IBM
URL: http://cdnlog-web.qiyi.domain
@ -77,6 +77,9 @@ fi
%changelog
* Mon Feb 12 2018 zhengshuxin@qiyi.com 3.3.0-72-20180212.15
- master_ctld: support GET for checking port if service is aliving
* Mon Feb 12 2018 zhengshuxin@qiyi.com 3.3.0-71-20180212.14
- remove daemon from master's service