[nginx] Syslog: fixed message sending on win32.

Homutov Vladimir vl at nginx.com
Tue May 27 11:56:37 UTC 2014


details:   http://hg.nginx.org/nginx/rev/44532046d9d7
branches:  
changeset: 5709:44532046d9d7
user:      Vladimir Homutov <vl at nginx.com>
date:      Tue May 27 15:42:34 2014 +0400
description:
Syslog: fixed message sending on win32.

diffstat:

 src/core/ngx_syslog.c |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r aacd994167d3 -r 44532046d9d7 src/core/ngx_syslog.c
--- a/src/core/ngx_syslog.c	Mon May 26 23:34:44 2014 +0400
+++ b/src/core/ngx_syslog.c	Tue May 27 15:42:34 2014 +0400
@@ -317,6 +317,10 @@ ngx_syslog_init_peer(ngx_syslog_peer_t *
     cln->handler = ngx_syslog_cleanup;
 
     peer->conn.fd = fd;
+
+    /* UDP sockets are always ready to write */
+    peer->conn.write->ready = 1;
+
     return NGX_OK;
 
 failed:



More information about the nginx-devel mailing list