audio 数据传输过期#
在后台给前端的 audio 传输数据的时候经常断开,
在找了很久没找到 bug 之后
发现,是 tomcat 的连接时间过期了。
修改\tomcat path\conf\server.xml
的这一行
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="900000"
redirectPort="8443" />
把connectionTimeout
调大点,单位应该是毫秒,默认20000
诶哟,气死我了。