Closed reallyimeric closed 1 year ago
The "dh generate key" error is produced by OpenSSL. Is this a randomly occurring bug, or is there a consistent and reliable method to reproduce it? Could you help to test SRS 5.0, as it utilizes a newer version of OpenSSL that might exhibit different behavior?
The "dh generate key" error is produced by OpenSSL. Is this a randomly occurring bug, or is there a consistent and reliable method to reproduce it? Could you help to test SRS 5.0, as it utilizes a newer version of OpenSSL that might exhibit different behavior?
I can always reproduce the issue, not occasionally. I'll try 5.0.
Built tag v5.0-b1 with --generic-linux=on --srt=off. openssl version is 3.1.1.
I can confirm it works normally
[2023-06-11 18:26:51.968][INFO][22331][m58zi67c] RTMP client ip=127.0.0.1:42838, fd=10
[2023-06-11 18:26:51.969][INFO][22331][m58zi67c] complex handshake success
[2023-06-11 18:26:52.014][INFO][22331][m58zi67c] connect app, tcUrl=rtmp://localhost:1935/live, pageUrl=, swfUrl=, schema=rtmp, vhost=localhost, port=1935, app=live, args=null
[2023-06-11 18:26:52.014][INFO][22331][m58zi67c] protocol in.buffer=0, in.ack=0, out.ack=0, in.chunk=128, out.chunk=128
[2023-06-11 18:26:52.104][INFO][22331][m58zi67c] ignore AMF0/AMF3 command message.
[2023-06-11 18:26:52.151][INFO][22331][m58zi67c] ignore AMF0/AMF3 command message.
[2023-06-11 18:26:52.151][INFO][22331][m58zi67c] client identified, type=rtmp-play, vhost=localhost, app=live, stream=test, param=, duration=-1ms
[2023-06-11 18:26:52.151][INFO][22331][m58zi67c] connected stream, tcUrl=rtmp://localhost:1935/live, pageUrl=, swfUrl=, schema=rtmp, vhost=__defaultVhost__, port=1935, app=live, stream=test, param=, args=null
[2023-06-11 18:26:52.151][INFO][22331][m58zi67c] source url=/live/test, ip=127.0.0.1, cache=0/2500, is_edge=0, source_id=a2v4d612/a2v4d612
[2023-06-11 18:26:52.151][INFO][22331][m58zi67c] set fd=10 TCP_NODELAY 0=>1
[2023-06-11 18:26:52.151][INFO][22331][m58zi67c] dispatch cached gop success. count=0, duration=0
[2023-06-11 18:26:52.151][INFO][22331][m58zi67c] create consumer, active=1, queue_size=0.00, jitter=10000000
[2023-06-11 18:26:52.151][INFO][22331][m58zi67c] set fd=10, SO_SNDBUF=2626560=>50000, buffer=100ms
[2023-06-11 18:26:52.151][INFO][22331][m58zi67c] start play smi=0ms, mw_sleep=100, mw_msgs=8, realtime=0, tcp_nodelay=1
Description
Player failed to play the stream with error on srs log
serve error code=2031 : rtmp handshake : complex handshake : create s1 from c1 : dh init : init : dh generate key
I'm using openssl 3.0.8
SRS Version: 4.0_r4
SRS Log:
Replay
Please describe how to replay the bug?
Step 1: push to rtmp stream using OBS with AMD HW h.264 encoding
push to srs using OBS GUI
Step 2: watch the stream using MPC-HC or mpv
open url
rtmp://xxxx/xxxx/xxxx
in the playerExpect
Please describe your expectation.
Live stream shows on the player
Actual results
Failed to play and error on srs log (see above)