Fixes #246 : client's response object is now reset when attempting to resend request on read error
This commit is contained in:
parent
c2a10cc72a
commit
a316310815
1 changed files with 1 additions and 0 deletions
|
|
@ -524,6 +524,7 @@ namespace SimpleWeb {
|
|||
session->connection = create_connection();
|
||||
session->connection->attempt_reconnect = false;
|
||||
session->connection->in_use = true;
|
||||
session->response = std::shared_ptr<Response>(new Response(session->response->streambuf.max_size()));
|
||||
connections.emplace(session->connection);
|
||||
lock.unlock();
|
||||
this->connect(session);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue