hey,

i've just started using the UDP multicast socket logging:

# uwsgi --ini [...] --logger socket:239.192.0.1:23456,"[$(hostname -s)] "

... which is really slick, except:

# uwsgi --udp 239.192.0.1:23456

... cannot handle a multicast address, because:

HEAD:core/master.c:698
======================================
[...]
    if (uwsgi.udp_socket) {
        udp_fd = bind_to_udp(uwsgi.udp_socket, 0, 0);
        if (udp_fd < 0) {
[...]
======================================

... the multicast bit is an unconditional "no" :-(, but things seem to
work just fine if i recompile with it set to "1".

would it be possible to detect (first 3 chars?) if multicast address,
and set accordingly?  ... aaand then sneak into 1.3? while i may
ultimately end up using 0MQ, or possibly graylog2, this has been a
nice cheap way for my team to easily tap into the happenings of
different servers (QA/staging/etc), simultaneously.

i'm instead using:

# socat UDP4-RECVFROM:23456,reuseaddr,ip-add-membership=239.192.0.1:0.0.0.0,fork
STDOUT

... for the time being.

thanks,

-- 

C Anthony
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to