You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
By clicking “Sign up for GitHub”, you agree to our
terms of service
and
privacy statement
. We’ll occasionally send you account related emails.
Already on GitHub?
Sign in
to your account
使用tengine的syslog插件(--with-syslog),udp方式发送日志,由于$request_body较大,syslog只发了2048字节,后面的数据全部丢失。我用自己写的udp发送包,无限制。所以怀疑syslog发送udp有限制包大小,请问在哪里可以修改tengine中的syslog的udp包限制的配置?
src/os/unix/ngx_syslog.c
define NGX_SYSLOG_MAX_LENGTH 2048
rfc5424:
Transport receivers MAY receive
messages larger than 2048 octets in length. If a transport receiver
receives a message with a length larger than it supports, the
transport receiver SHOULD truncate the payload.
是否考虑分片UDP包?
RFC5426 Transmission of Syslog Messages over UDP
http://tools.ietf.org/html/rfc5426#section-3.2
All syslog receivers SHOULD be able to receive datagrams
with message sizes of up to and including 2048 octets. The ability
to receive larger messages is encouraged.