We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
plugin-gb28181/channel.go
Line 425 in a207352
在发送Invite请求之前需要从PortManager中拿一个端口,但是发送Invite请求不成功时,不能走Bye中的recycle逻辑。久而久之PortManager.Range()会越来越少直至耗尽
PortManager
Bye
recycle
PortManager.Range()
inviteRes, err := d.SipRequestForResponse(invite) if err != nil { channel.Error("invite", zap.Error(err), zap.String("msg", invite.String())) return http.StatusInternalServerError, err }
The text was updated successfully, but these errors were encountered:
另外还发现一个问题是SipRequestForResponse会阻塞很久,或者会报超时错误。估计是gosip库的问题
SipRequestForResponse
Sorry, something went wrong.
嗯,你看看有没有办法回收端口,帮忙提个 PR
plugin-gb28181/channel.go Line 425 in a207352 return http.StatusInternalServerError, err 在发送Invite请求之前需要从PortManager中拿一个端口,但是发送Invite请求不成功时,不能走Bye中的recycle逻辑。久而久之PortManager.Range()会越来越少直至耗尽 inviteRes, err := d.SipRequestForResponse(invite) if err != nil { channel.Error("invite", zap.Error(err), zap.String("msg", invite.String())) return http.StatusInternalServerError, err }
请问解决了吗
解决了
No branches or pull requests
plugin-gb28181/channel.go
Line 425 in a207352
在发送Invite请求之前需要从
PortManager
中拿一个端口,但是发送Invite请求不成功时,不能走Bye
中的recycle
逻辑。久而久之PortManager.Range()
会越来越少直至耗尽The text was updated successfully, but these errors were encountered: