Skip to content

Commit 27cf578

Browse files
authored
Merge pull request #753 from redboltz/fix_752
Fixed #752.
2 parents daa78b4 + 7001679 commit 27cf578

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example/boost/asio_send_recv.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ int main() {
3838
std::cout << __LINE__ << ":" << e.message() << std::endl;
3939
return;
4040
}
41-
unp.reserve_buffer(window_size);
4241
do_async_read_some = [&] {
42+
unp.reserve_buffer(window_size);
4343
ss.async_read_some(
4444
boost::asio::buffer(unp.buffer(), window_size),
4545
[&](boost::system::error_code const& e, std::size_t bytes_transferred) {

0 commit comments

Comments
 (0)