mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-02 11:57:43 +08:00
test http_response
This commit is contained in:
parent
12ab022a3b
commit
280e4fdc1f
@ -15,7 +15,8 @@ class ACL_CPP_API http_response : public noncopyable
|
||||
{
|
||||
public:
|
||||
/**
|
||||
* 构造函数:通过该构造函数传入的 socket_stream 流对象将在本类析构时释放
|
||||
* 构造函数:通过该构造函数传入的 socket_stream 流对象需要用户自己进行
|
||||
* 删除,内部在析构时并不会删除它.
|
||||
* @param client {socket_stream*} 数据连接流,非空
|
||||
* 注:该类实例在长连接时可以被多次使用,但一定得注意使用
|
||||
* 顺序:get_body->response
|
||||
|
@ -66,7 +66,7 @@ static void handle_request(acl::socket_stream* conn)
|
||||
break;
|
||||
}
|
||||
|
||||
//conn->close();
|
||||
delete conn;
|
||||
printf(">>>> close client <<<<\r\n");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user