-
Notifications
You must be signed in to change notification settings - Fork 276
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
高并发请求下,日志出现冲突 #263
Comments
能提供一个样例吗? |
SeasLog :: warning("client_log=" . $param); |
日志的内容显示上一次日志未输出完,后一个日志就插入到中间。 |
ping @Neeke |
@xuhaifeng666 在写入日志时出于性能考虑,使用的是乐观锁。 |
seaslog.use_buffer = 1 |
@xuhaifeng666 高并发写触发日志截断的 demo 代码帮给个 |
$param = file_get_contents("php://input"); 我的代码就是收到请求打印内容,当post数据过大时就会出现日志截断的情况。 |
复现出body较大时,客户端分片传输,服务端收到多个请求,样例代码只记录第一个请求,SeasLog正常记录,后续数据被样例代码丢弃(http 400) |
并发请求下,日志出现被截断的情况,请问是配置问题吗?
The text was updated successfully, but these errors were encountered: