File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
boost/network/protocol/http/client/connection Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -126,15 +126,6 @@ namespace boost { namespace network { namespace http { namespace impl {
126
126
timer_.cancel ();
127
127
}
128
128
129
- void set_timer () {
130
- if (timeout_ > 0 ) {
131
- timer_.async_wait (request_strand_.wrap (
132
- boost::bind (&this_type::handle_timeout,
133
- this_type::shared_from_this (),
134
- _1)));
135
- }
136
- }
137
-
138
129
void handle_timeout (boost::system::error_code const &ec) {
139
130
if (!ec)
140
131
{
@@ -238,8 +229,6 @@ namespace boost { namespace network { namespace http { namespace impl {
238
229
false
239
230
#endif
240
231
;
241
- timer_.cancel ();
242
-
243
232
if (!ec || ec == boost::asio::error::eof || is_ssl_short_read_error) {
244
233
logic::tribool parsed_ok;
245
234
size_t remainder;
@@ -391,6 +380,7 @@ namespace boost { namespace network { namespace http { namespace impl {
391
380
this ->source_promise .set_value (" " );
392
381
this ->part .assign (' \0 ' );
393
382
this ->response_parser_ .reset ();
383
+ this ->timer_ .cancel ();
394
384
} else {
395
385
// This means the connection has not been closed yet and we want to get more
396
386
// data.
You can’t perform that action at this time.
0 commit comments