How can the client known what the server is doing when catching a TimeoutException?

Gu ShuwangGu Shuwang Gu ShuwangOrganization: USTC iFLYTEK Co., LtdProject: iflytek sound analyser 4.0Member
Hi,

I want to known what caused a timeout. In other words, I need known what is the server doing when a client catched a TimeoutException.

I think there are 3 steps: The server is

1)receiving(read) data from the client.
2)processing data received from the client.
3)sending(write) data to the client

Can I make sure which step the program in when catching a TimeoutException?Because I find rhis in document:
Timeouts that expire during reading or writing of data are indicated by a  TimeoutException.

According to my needs, I could only focus on "TimeoutException", regardless of "ConnectTimeoutException" and "CloseTimeoutException". I'm not sure I understand correctly...

I am new for ICE. I need your help.:)

Thanks,
Gu.

Comments

  • benoitbenoit Rennes, FranceBenoit FoucherOrganization: ZeroC, Inc.Project: IceAdministrators, ZeroC Staff ZeroC Staff
    Hi,

    There's no way to figure out what could have caused the timeout exception. As you pointed out, it could either be because of the read/write for the request/response or because the dispatching of the request took too long. It would be difficult for Ice to figure this out. I'm curious, why do you want to know what caused the timeout exception?

    Cheers,
    Benoit.
Sign In or Register to comment.