ICE 超時時間比設置時間長。


原因:ICE idempotent operation 存在超時重試機制導致。

解決方法:設置參數,Ice.Retry.Intervals=-1

Ice.RetryIntervals

Synopsis

Ice.RetryIntervals=num [num ...]

Description

This property defines the number of times an operation is automatically retried and the delay between each retry. For example, if the property is set to 0 100 500, the operation is retried 3 times: immediately after the first failure, again after waiting 100ms after the second failure, and again after waiting 500ms after the third failure. The default value (0) means Ice retries once immediately. If set to -1, no retry occurs.

另:可通過設置參數Ice.Trace.Network=3來跟蹤Ice建立連接尋找服務器過程。

Ice.Trace.Network

Synopsis

Ice.Trace.Network=num

Description

Controls the trace level for low-level network activities such as connection establishment and read/write operations:

0

No network trace (default).

1

Trace successful connection establishment and closure.

2

Like 1, but also trace attempts to bind, connect, and disconnect sockets.

3

Like 2, but also trace data transfer, the published endpoints for an object adapter, and the current list of local addresses for an endpoint that uses the wildcard address.

http://doc.zeroc.com/display/Ice35/Ice+Trace+Properties

http://doc.zeroc.com/pages/viewpage.action?pageId=3900808

http://doc.zeroc.com/display/Ice/Automatic+Retries


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM