mirror of
https://gitee.com/an-tao/drogon.git
synced 2024-11-30 02:37:57 +08:00
Update the submodule trantor
This commit is contained in:
parent
17ffbb6a0f
commit
0b96089a0a
@ -66,7 +66,11 @@ static void defaultConnectionCallback(const trantor::TcpConnectionPtr &conn)
|
||||
HttpServer::HttpServer(EventLoop *loop,
|
||||
const InetAddress &listenAddr,
|
||||
const std::string &name)
|
||||
#ifdef __linux__
|
||||
: _server(loop, listenAddr, name.c_str()),
|
||||
#else
|
||||
: _server(loop, listenAddr, name.c_str(), true, false),
|
||||
#endif
|
||||
_httpAsyncCallback(defaultHttpAsyncCallback),
|
||||
_newWebsocketCallback(defaultWebSockAsyncCallback),
|
||||
_connectionCallback(defaultConnectionCallback)
|
||||
@ -155,7 +159,6 @@ void HttpServer::onMessage(const TcpConnectionPtr &conn,
|
||||
if (resp->statusCode() == k101SwitchingProtocols)
|
||||
{
|
||||
requestParser->setWebsockConnection(wsConn);
|
||||
|
||||
}
|
||||
auto httpString = std::dynamic_pointer_cast<HttpResponseImpl>(resp)->renderToString();
|
||||
conn->send(httpString);
|
||||
|
2
trantor
2
trantor
@ -1 +1 @@
|
||||
Subproject commit 4680663d3529d3cba41d688d15661306dd23c0d9
|
||||
Subproject commit 26c2df7b005901dd9a2255374d67a81414a9c893
|
Loading…
Reference in New Issue
Block a user