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