comment unused parameter
This commit is contained in:
parent
9fa5fac4cb
commit
bc7e5da304
1 changed files with 3 additions and 3 deletions
|
|
@ -67,7 +67,7 @@ namespace SimpleWeb {
|
||||||
|
|
||||||
boost::asio::async_write(*socket, *write_buffer,
|
boost::asio::async_write(*socket, *write_buffer,
|
||||||
strand->wrap([socket_, write_buffer, callback, async_writing_, async_timer_, async_waiting_]
|
strand->wrap([socket_, write_buffer, callback, async_writing_, async_timer_, async_waiting_]
|
||||||
(const boost::system::error_code& ec, size_t bytes_transferred) {
|
(const boost::system::error_code& ec, size_t /*bytes_transferred*/) {
|
||||||
*async_writing_=false;
|
*async_writing_=false;
|
||||||
if(*async_waiting_)
|
if(*async_waiting_)
|
||||||
async_timer_->cancel();
|
async_timer_->cancel();
|
||||||
|
|
@ -260,7 +260,7 @@ namespace SimpleWeb {
|
||||||
boost::asio::async_read(*socket, request->streambuf,
|
boost::asio::async_read(*socket, request->streambuf,
|
||||||
boost::asio::transfer_exactly(stoull(request->header["Content-Length"])-num_additional_bytes),
|
boost::asio::transfer_exactly(stoull(request->header["Content-Length"])-num_additional_bytes),
|
||||||
[this, socket, request, timer]
|
[this, socket, request, timer]
|
||||||
(const boost::system::error_code& ec, size_t bytes_transferred) {
|
(const boost::system::error_code& ec, size_t /*bytes_transferred*/) {
|
||||||
if(timeout_content>0)
|
if(timeout_content>0)
|
||||||
timer->cancel();
|
timer->cancel();
|
||||||
if(!ec)
|
if(!ec)
|
||||||
|
|
@ -379,4 +379,4 @@ namespace SimpleWeb {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
#endif /* SERVER_HTTP_HPP */
|
#endif /* SERVER_HTTP_HPP */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue