Merge branch 'master' of https://github.com/sogou/workflow into nossl

This commit is contained in:
Xie Han
2024-03-17 00:13:38 +08:00
3 changed files with 3 additions and 6 deletions
+1 -2
View File
@@ -193,8 +193,7 @@ public:
std::function<void (WFDnsTask *)>& proc) :
WFServerTask(service, WFGlobal::get_scheduler(), proc)
{
auto *server = (WFServer<DnsRequest, DnsResponse> *)service;
this->type = server->get_params()->transport_type;
this->type = ((WFServerBase *)service)->get_params()->transport_type;
}
protected:
+1 -3
View File
@@ -324,9 +324,7 @@ void ComplexHttpTask::check_response()
if (this->state == WFT_STATE_SYS_ERROR && this->error == ECONNRESET)
{
/* Servers can end the message by closing the connection. */
if (resp->is_header_complete() &&
!resp->is_keep_alive() &&
!resp->is_chunked() &&
if (resp->is_header_complete() && !resp->is_chunked() &&
!resp->has_content_length_header())
{
this->state = WFT_STATE_SUCCESS;
+1 -1
View File
@@ -1,5 +1,5 @@
set_project("workflow")
set_version("0.10.6")
set_version("0.11.3")
option("workflow_inc", {description = "workflow inc", default = "$(projectdir)/_include"})
option("workflow_lib", {description = "workflow lib", default = "$(projectdir)/_lib"})