You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
voidHttpServer::operator() (
server_type::request const& request,
server_type::connection_ptr connection) {
std::vector<server_type::response_header> headers;
connection->set_status(server_type::connection::ok);
connection->set_headers(
boost::make_iterator_range(headers.begin(), headers.end()));
for (int i = 0; i < 100; i++) {
connection->write(data);
}
}
causes:
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector<boost::system::system_error> >'what(): Success
Program received signal SIGABRT, Aborted.