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
[BUG]: Server will crash when client send RTMP poc messages #1839
Comments
|
Can you run gdb to debug MediaServer ? |
|
Is this right ? $ python ./sender.py 127.0.0.1 1935 ./poc
sendbuf len is 3664
going to send 1537 bytes data
Traceback (most recent call last):
File "./sender.py", line 40, in <module>
while len(n) > 0:
NameError: name 'n' is not defined |
|
Of course not right. It seems that the first time receive timeout. Yes, in gdb the server will receive something like |
|
You can past the snap of |
|
can't you reproduce that? You can try run again, this error is because the receive timeout, maybe the network stucks. The client is just sent the handshake packet(C0+C1), the server should return S0+S1+S2 now, but receive timeout. |
|
Yes, i reproduce this; and fix the bug. |
|
Thanks for your feedback! |
|
fixed |
现象描述
After cmake(Debug version) and run with
./MediaServer(maybe add sudo to support port below 1024), a client can send RTMP requests to make the server crash.如何复现?
git clone --depth 1 https://github.com/ZLMediaKit/ZLMediaKit.gitandgit submodule update --initand cmake it.[sudo] ./MediaServerwith default config.ini相关日志或截图
展开查看详细日志
配置
展开查看详细配置
各种环境信息
The text was updated successfully, but these errors were encountered: