Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

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

用udp发送数据超过8k的时候syslog出现日志不完整 #311

Open
dragon-D opened this issue Nov 24, 2021 · 0 comments
Open

用udp发送数据超过8k的时候syslog出现日志不完整 #311

dragon-D opened this issue Nov 24, 2021 · 0 comments
Labels

Comments

@dragon-D
Copy link

dragon-D commented Nov 24, 2021

当发送数据超过8k大小的时候,抓包看每次发送的分片数据最大就是8200,导致会出现多个流,syslog接收后不能组成一个日志数据丢失。
这里主要是php的stream默认分块大小就是8192。
image

目前我是在每个php_stream_write 调用出加上了
php_stream_set_chunk_size

@Neeke Neeke added the bug label May 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants