Skip to content

Commit

Permalink
merge with nw_socket
Browse files Browse the repository at this point in the history
  • Loading branch information
sbSteveK committed Sep 24, 2024
2 parents a4be446 + 2282f8f commit 8945b5f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/darwin/nw_socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,7 @@ static int s_socket_connect_fn(
nw_socket->timeout_args = aws_mem_calloc(socket->allocator, 1, sizeof(struct nw_socket_timeout_args));
nw_socket->timeout_args->socket = socket;
nw_socket->timeout_args->allocator = socket->allocator;

aws_task_init(
&nw_socket->timeout_args->task,
s_handle_socket_timeout,
Expand Down Expand Up @@ -1295,6 +1296,11 @@ static int s_socket_write_fn(
goto nw_socket_release;
}

AWS_LOGF_ERROR(
AWS_LS_IO_SOCKET,
"id=%p handle=%p: DEBUG:: callback writing message: %p",
(void *)socket,
handle, user_data);
int error_code = !error || nw_error_get_error_code(error) == 0
? AWS_OP_SUCCESS
: s_determine_socket_error(nw_error_get_error_code(error));
Expand Down

0 comments on commit 8945b5f

Please sign in to comment.