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

posted @ 2013-01-28 14:55  good90  阅读(4267)  评论(0编辑  收藏  举报