File tree Expand file tree Collapse file tree 2 files changed +3
-13
lines changed
include/boost/http_io/impl Expand file tree Collapse file tree 2 files changed +3
-13
lines changed Original file line number Diff line number Diff line change @@ -142,7 +142,7 @@ class read_body_op
142
142
__FILE__, __LINE__,
143
143
" immediate" ));
144
144
asio::async_immediate (
145
- self.get_io_executor (), std::move (self));
145
+ self.get_io_executor (), asio::append ( std::move (self), ec ));
146
146
}
147
147
goto upcall;
148
148
}
Original file line number Diff line number Diff line change @@ -43,20 +43,12 @@ class write_some_op
43
43
{
44
44
}
45
45
46
- template <class Self >
47
- void
48
- operator ()(Self& self)
49
- {
50
- (*this )(self, {}, 0 , true );
51
- }
52
-
53
46
template <class Self >
54
47
void
55
48
operator ()(
56
49
Self& self,
57
50
system::error_code ec = {},
58
- std::size_t bytes_transferred = {},
59
- bool do_post = false )
51
+ std::size_t bytes_transferred = {})
60
52
{
61
53
system::result<buffers_type> rv;
62
54
@@ -66,15 +58,13 @@ class write_some_op
66
58
if (! rv)
67
59
{
68
60
ec = rv.error ();
69
- if (! do_post)
70
- goto upcall;
71
61
BOOST_ASIO_CORO_YIELD
72
62
{
73
63
BOOST_ASIO_HANDLER_LOCATION ((
74
64
__FILE__, __LINE__,
75
65
" http_io::write_some_op" ));
76
66
asio::async_immediate (
77
- self.get_io_executor (), std::move (self));
67
+ self.get_io_executor (), asio::append ( std::move (self), ec ));
78
68
}
79
69
goto upcall;
80
70
}
You can’t perform that action at this time.
0 commit comments