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

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

Thats it, working fine now, tnx!

Posted at Nginx Forum:
http://forum.nginx.org/read.php?2,250328,250334#msg-250334

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);

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs