Welcome! Log In Create A New Profile

Advanced

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

Sergey Kandaurov
September 07, 2022 08:38AM
details: https://hg.nginx.org/nginx/rev/5f5a34e83ca2
branches:
changeset: 8064:5f5a34e83ca2
user: Maxim Dounin <mdounin@mdounin.ru>
date: Wed Sep 07 00:43:51 2022 +0300
description:
Events: fixed style and wrong error handling in the iocp module.

diffstat:

src/event/modules/ngx_iocp_module.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)

diffs (24 lines):

diff -r 9cf231508a8d -r 5f5a34e83ca2 src/event/modules/ngx_iocp_module.c
--- a/src/event/modules/ngx_iocp_module.c Tue Aug 09 17:13:46 2022 -0300
+++ b/src/event/modules/ngx_iocp_module.c Wed Sep 07 00:43:51 2022 +0300
@@ -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

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

Sergey Kandaurov 326 September 07, 2022 08:38AM



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

Online Users

Guests: 116
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