mirror of
https://github.com/sogou/workflow.git
synced 2026-02-08 01:33:17 +08:00
Merge branch 'master' of https://github.com/sogou/workflow into nossl
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -107,7 +107,7 @@ public:
|
||||
{
|
||||
e = list_entry(pos, Handle, list);
|
||||
assert(e->ref == 1);
|
||||
rb_erase(&e->rb);
|
||||
rb_erase(&e->rb, &this->cache_map);
|
||||
this->erase_node(e);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user