Edward-Wu / srt-live-server

srt live server for low latency
Other
644 stars 192 forks source link

some log info issue #130

Open liyitong5 opened 1 year ago

liyitong5 commented 1 year ago

Hi Edward, First of all, thanks for your work on this. I've had some sls disconnection issues bothering me lately.

2023-08-30 23:48:15:448 SLS ERROR: CSLSSrt::libsrt_neterrno, err=2001, Connection was broken.
2023-08-30 23:48:15:448 SLS INFO: [0x7f0d00a0d400]CSLSRole::invalid_srt, close sock=673460317, m_state=2.
2023-08-30 23:48:15:448 SLS INFO: [0x7f0d01739a50]CSLSSrt::libsrt_close, fd=673460317.
2023-08-30 23:48:15:448 SLS INFO: [0x66ce60]CSLSGroup::check_invalid_sock, worker_number=0, player=0x7f0d00a0d400, invalid sock=0, state=2, role_map.size=39.
2023-08-30 23:48:15:448 SLS INFO: [0x66ce60]CSLSGroup::check_invalid_sock, worker_number=0, player=0x7f0d00a0d400, delete.
2023-08-30 23:48:15:704 SLS INFO: [0x65c150]CSLSSrt::libsrt_accept ok, new sock=673356743, 10.132.151.38:39812.
2023-08-30 23:48:15:704 SLS INFO: [0x7f0d0a871010]CSLSListener::handler, new client[10.132.151.38:39812], fd=673356743.
2023-08-30 23:48:15:704 SLS INFO: [0x7f0d0a871010]CSLSListener::handler, [10.132.151.38:39812], sid 'liveops.qiyi.domain/live/CCTV7CQWX'
2023-08-30 23:48:15:704 SLS INFO: [0x7f0d0a871010]CSLSListener::handler, new player[0x7f0d00a0d400]=[10.132.151.38:39812], key_stream_name=upliveops.qiyi.domain/live/CCTV7CQWX, publisher=0x7f0d0085cfe0, m_list_role->size=1.
2023-08-30 23:48:15:704 SLS INFO: [0x7f0d00a0d400]CSLSRole::add_to_epoll, player, sock=673356743, m_is_write=1, ret=0.
2023-08-30 23:48:15:704 SLS INFO: [0x68a340]CSLSGroup::check_new_role, worker_number=13, player=0x7f0d00a0d400, add_to_epoll fd=673356743, role_map.size=3.
2023-08-30 23:48:15:704 SLS INFO: [0x65be28]CSLSMapData::get, get sps pps ok, key=upliveops.qiyi.domain/live/CCTV7CQWX, len=1316.

I have some questiones for :

1、CSLSSrt::libsrt_neterrno, err=2001, Connection was broken. // Is this a global failure or a link failure

2、check_invalid_sock, worker_number=0, player=0x7f0d00a0d400, invalid sock=0, state=2, role_map.size=39 // this sock=0 it is means ,The peer network is faulty, or is it the SLS side?

3、From the above alarms, can we see whether it is the problem of the sls end or the receiving end?

Looking forward to your reply, thank you very much!