Get latest changes from Primitive Indexer
This commit is contained in:
@@ -211,7 +211,7 @@ static int32_t DN_NET_CurlThreadEntryPoint_(DN_OSThread *thread)
|
||||
int running_handles = 0;
|
||||
CURLMcode perform_result = curl_multi_perform(curl->thread_curlm, &running_handles);
|
||||
if (perform_result != CURLM_OK)
|
||||
DN_InvalidCodePath;
|
||||
DN_AssertInvalidCodePath;
|
||||
|
||||
// NOTE: Check pump result
|
||||
for (;;) {
|
||||
@@ -498,7 +498,7 @@ static DN_NETRequestHandle DN_NET_CurlDoRequest_(DN_NETCore *net, DN_Str8 url, D
|
||||
|
||||
// NOTE: Setup handle for protocol
|
||||
switch (req->type) {
|
||||
case DN_NETRequestType_Nil: DN_InvalidCodePath; break;
|
||||
case DN_NETRequestType_Nil: DN_AssertInvalidCodePath; break;
|
||||
|
||||
case DN_NETRequestType_WS: {
|
||||
curl_easy_setopt(curl, CURLOPT_CONNECT_ONLY, 2L);
|
||||
@@ -518,7 +518,7 @@ static DN_NETRequestHandle DN_NET_CurlDoRequest_(DN_NETCore *net, DN_Str8 url, D
|
||||
curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, req->args.payload.size);
|
||||
curl_easy_setopt(curl, CURLOPT_COPYPOSTFIELDS, req->args.payload.data);
|
||||
} else {
|
||||
DN_InvalidCodePathF("Unimplemented");
|
||||
DN_AssertInvalidCodePathF("Unimplemented");
|
||||
}
|
||||
} break;
|
||||
}
|
||||
|
||||
@@ -281,14 +281,13 @@ void DN_NET_EmcDoWSSend(DN_NETRequestHandle handle, DN_Str8 data, DN_NETWSSend s
|
||||
{
|
||||
DN_AssertF(send == DN_NETWSSend_Binary || send == DN_NETWSSend_Text || send == DN_NETWSSend_Close,
|
||||
"Unimplemented, Emscripten only supports some of the available operations");
|
||||
|
||||
int result = 0;
|
||||
int result = 0;
|
||||
DN_NETRequest *request_ptr = DN_Cast(DN_NETRequest *) handle.handle;
|
||||
if (request_ptr && request_ptr->gen == handle.gen) {
|
||||
DN_Assert(request_ptr->type == DN_NETRequestType_WS);
|
||||
DN_NETEmcRequest *emc_request = DN_Cast(DN_NETEmcRequest *) request_ptr->context[1];
|
||||
switch (send) {
|
||||
default: DN_InvalidCodePath; break;
|
||||
default: DN_AssertInvalidCodePath; break;
|
||||
case DN_NETWSSend_Text: {
|
||||
DN_U64 pos = DN_MemListPos(request_ptr->start_response_arena.mem);
|
||||
DN_Str8 data_null_terminated = DN_Str8FromStr8Arena(data, &request_ptr->start_response_arena);
|
||||
|
||||
Reference in New Issue
Block a user