mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 04:04:16 +00:00
* HTTPProxy.cpp : unwrap AsyncSockRead()
This commit is contained in:
parent
5c9a69e0e8
commit
a5f49550b3
@ -81,13 +81,13 @@ namespace proxy {
|
|||||||
void HTTPReqHandler::AsyncSockRead()
|
void HTTPReqHandler::AsyncSockRead()
|
||||||
{
|
{
|
||||||
LogPrint(eLogDebug, "HTTPProxy: async sock read");
|
LogPrint(eLogDebug, "HTTPProxy: async sock read");
|
||||||
if(m_sock) {
|
if (!m_sock) {
|
||||||
m_sock->async_receive(boost::asio::buffer(m_http_buff, http_buffer_size),
|
|
||||||
std::bind(&HTTPReqHandler::HandleSockRecv, shared_from_this(),
|
|
||||||
std::placeholders::_1, std::placeholders::_2));
|
|
||||||
} else {
|
|
||||||
LogPrint(eLogError, "HTTPProxy: no socket for read");
|
LogPrint(eLogError, "HTTPProxy: no socket for read");
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
m_sock->async_receive(boost::asio::buffer(m_http_buff, http_buffer_size),
|
||||||
|
std::bind(&HTTPReqHandler::HandleSockRecv, shared_from_this(),
|
||||||
|
std::placeholders::_1, std::placeholders::_2));
|
||||||
}
|
}
|
||||||
|
|
||||||
void HTTPReqHandler::Terminate() {
|
void HTTPReqHandler::Terminate() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user