Welcome! Log In Create A New Profile

Advanced

[PATCH] Events: fixed style and wrong error handling in the iocp module

Maxim Dounin
August 25, 2022 09:20PM
# HG changeset patch
# User Maxim Dounin <mdounin@mdounin.ru>
# Date 1661476617 -10800
# Fri Aug 26 04:16:57 2022 +0300
# Node ID 3296b3825fa9b8cd4d0aafb39bb5ea1fac97c6db
# Parent 069a4813e8d6d7ec662d282a10f5f7062ebd817f
Events: fixed style and wrong error handling in the iocp module.

diff --git a/src/event/modules/ngx_iocp_module.c b/src/event/modules/ngx_iocp_module.c
--- a/src/event/modules/ngx_iocp_module.c
+++ b/src/event/modules/ngx_iocp_module.c
@@ -231,9 +231,8 @@ ngx_iocp_del_connection(ngx_connection_t
}


-static
-ngx_int_t ngx_iocp_process_events(ngx_cycle_t *cycle, ngx_msec_t timer,
- ngx_uint_t flags)
+static ngx_int_t
+ngx_iocp_process_events(ngx_cycle_t *cycle, ngx_msec_t timer, ngx_uint_t flags)
{
int rc;
u_int key;
@@ -356,7 +355,7 @@ ngx_iocp_create_conf(ngx_cycle_t *cycle)

cf = ngx_palloc(cycle->pool, sizeof(ngx_iocp_conf_t));
if (cf == NULL) {
- return NGX_CONF_ERROR;
+ return NULL;
}

cf->threads = NGX_CONF_UNSET;

_______________________________________________
nginx-devel mailing list -- nginx-devel@nginx.org
To unsubscribe send an email to nginx-devel-leave@nginx.org
Subject Author Views Posted

[PATCH] Events: fixed style and wrong error handling in the iocp module

Maxim Dounin 340 August 25, 2022 09:20PM

Re: [PATCH] Events: fixed style and wrong error handling in the iocp module

Sergey Kandaurov 95 September 06, 2022 07:50AM

Re: [PATCH] Events: fixed style and wrong error handling in the iocp module

Maxim Dounin 114 September 06, 2022 08:14PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 219
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready