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
dns cache 功能有bug,应该以hostname+portstr为key。 #3700
Comments
ipv6地址存进去就变成空了 |
修改hostname+portstr为key,解决了重定向的问题,还不清楚有没有其他副作用 |
设置 dns_cache_timeout 为 -1 补充下: dns cache 默认就应该关闭。 |
请问具体要怎么设置呢,没接触过这块,试了弄了下,发现还是不行。 |
我们目前处理的方案也是 采用的设置dns_cache_clear。 |
设置了dns_cashe_clear 还是不行,移动网络播放m3u8直播流会报错hit dns cashe but content fail |
请问你的问题后来解决了吗,我也遇到跟你相同的问题 |
rtmp端口号是1935,http-flv端口号默认80。
缓存的addrinfo 的 sockaddr 结构体带有端口号信息。
所以缓存域名解析信息时应该用hostname+portstr为key,
或者从内存里取的addrinfo缓存信息,如果端口号和本次不一致应该修改addrinfo里面的端口号信息。
The text was updated successfully, but these errors were encountered: