Forum: NGINX Added syslog support is not working on win32 (changeset 5702:777202558122)

2974d09ac2541e892966b762aad84943?d=identicon&s=25 itpp2012 (Guest)
on 2014-05-23 19:10
(Received via mailing list)
With original sources from 1.7.1,

    access_log syslog:server=192.168.2.8:514 main;

2014/05/23 18:55:30 [debug] 2100#2140: *1 http write filter 00000000
2014/05/23 18:55:30 [debug] 2100#2140: *1 http finalize request: 0,
"/index.html?" a:1, c:2
2014/05/23 18:55:30 [debug] 2100#2140: *1 http request count:2 blk:0
2014/05/23 18:55:30 [debug] 2100#2140: *1 http finalize request: -4,
"/index.html?" a:1, c:1
2014/05/23 18:55:30 [debug] 2100#2140: *1 set http keepalive handler
2014/05/23 18:55:30 [debug] 2100#2140: *1 http close request
2014/05/23 18:55:30 [debug] 2100#2140: *1 http log handler
2014/05/23 18:55:30 [debug] 2100#2140: add cleanup: 00557518
2014/05/23 18:55:30 [warn] 2100#2140: *1 send() to syslog failed while
logging request, client: 192.168.2.8, server: localhost, request: "GET /
HTTP/1.1", host: "192.168.2.27"
2014/05/23 18:55:30 [debug] 2100#2140: *1 run cleanup: 035A094C
2014/05/23 18:55:30 [debug] 2100#2140: *1 file cleanup: fd:424
2014/05/23 18:55:30 [debug] 2100#2140: *1 free: 035A0058, unused: 1138

A local port by nginx (which varies ea. 60627) is opened for UDP for
0.0.0.0
and remains open.

Seems somewhere conf values are lost.

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,250328,250328#msg-250328
7a8e9bb034db81e612d72b30af4932d0?d=identicon&s=25 Homutov Vladimir (Guest)
on 2014-05-23 22:08
(Received via mailing list)
On Fri, May 23, 2014 at 01:09:55PM -0400, itpp2012 wrote:
> 2014/05/23 18:55:30 [debug] 2100#2140: *1 set http keepalive handler
> A local port by nginx (which varies ea. 60627) is opened for UDP for 0.0.0.0
> and remains open.
>
> Seems somewhere conf values are lost.
>
Could you please try the following patch to see if it makes any
difference?

diff -r 31dd63dcb9ea src/core/ngx_syslog.c
--- a/src/core/ngx_syslog.c     Fri May 23 16:37:05 2014 +0400
+++ b/src/core/ngx_syslog.c     Sat May 24 00:06:40 2014 +0400
@@ -267,6 +267,10 @@ ngx_syslog_send(ngx_syslog_peer_t *peer,
         }
     }

+#if (NGX_WIN32)
+    ngx_syslog_dummy_event.ready = 1;
+#endif
+
     if (ngx_send) {
         return ngx_send(&peer->conn, buf, len);
2974d09ac2541e892966b762aad84943?d=identicon&s=25 itpp2012 (Guest)
on 2014-05-23 22:52
(Received via mailing list)
Thats it, working fine now, tnx!

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,250328,250334#msg-250334
Please log in before posting. Registration is free and takes only a minute.
Existing account

NEW: Do you have a Google/GoogleMail, Yahoo or Facebook account? No registration required!
Log in with Google account | Log in with Yahoo account | Log in with Facebook account
No account? Register here.