tcp_handle_req: Made 4 read attempts but message is not complete yet - closing connection
生活随笔
收集整理的這篇文章主要介紹了
tcp_handle_req: Made 4 read attempts but message is not complete yet - closing connection
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
一、現象
測試opensips時遇到這么一個錯誤提示:
ERROR:core:tcp_handle_req: Made 4 read attempts but message is not complete yet - closing connection二、原因
直譯就是tcp模塊讀了4次還沒有把完整的包收下來,所以關閉了鏈接。
通過抓包結果看,確實如此,在這個測試網絡條件下,一條SIP呼叫消息竟然被分成了5個包。
三、解決思路
1.修改路由器的分包策略,把分包的長度的調高。
2.讓opensips再多嘗試讀幾次包。
四、解決
最終選擇了方案2。增加一條配置項如下:
modparam("proto_tcp","tcp_max_msg_chunks",8)?
總結
以上是生活随笔為你收集整理的tcp_handle_req: Made 4 read attempts but message is not complete yet - closing connection的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: jmeter之ip欺骗
- 下一篇: Oracle12cR2的CDB与PDB简