1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-10 21:33:38 +00:00

1. Fixed Compiler Warnings

2. Updated GC behavior for HTTP
This commit is contained in:
Bryan Roe
2021-05-20 11:36:40 -07:00
parent 2b1d5916bb
commit 486f8eaa39
4 changed files with 450 additions and 136 deletions

View File

@@ -208,7 +208,7 @@ void ILibDuktape_net_socket_OnConnect(ILibAsyncSocket_SocketModule socketModule,
duk_push_heapptr(ptrs->ctx, ptrs->object); // [socket]
if (alpnLen != 0)
{
duk_push_lstring(ptrs->ctx, alpn, alpnLen);
duk_push_lstring(ptrs->ctx, (char*)alpn, alpnLen);
}
else
{
@@ -880,7 +880,7 @@ void ILibDuktape_net_server_OnConnect(ILibAsyncServerSocket_ServerModule AsyncSe
SSL_SESSION_get0_alpn_selected(SSL_get_session(ILibAsyncServerSocket_GetSSL(ConnectionToken)), &alpn, &alpnLen);
if (alpnLen != 0)
{
duk_push_lstring(ptr->ctx, alpn, alpnLen);
duk_push_lstring(ptr->ctx, (char*)alpn, alpnLen);
}
else
{