I was trying to measure *in the server* the time between a message is received
by the client and the reply is received by the server.

This would have been nice for my performance tests.

But it merely seems impossible.

J-F

Hi,

On 1/11/06, Niklas Therning <[EMAIL PROTECTED]> wrote:
Well, I'm not an expert on TCP/IP but from what I know I think it will
be hard and require very low level programming to achieve that kind of
control. The Java abstraction of Socket IO (both blocking and
non-blocking) is too high-level.

I guess one would have to map packet sequence numbers to messages and
then be able to intercept acknowledges of sent packets to do what you
want. I'm not sure if OS:es allows you to get that kind of control.

I think what he needs to is to implement a "correlation identifier"
(http://www.enterpriseintegrationpatterns.com/CorrelationIdentifier.html)
in his message protocol.


But as I said, I'm no expert on TCP/IP so please correct me if I'm wrong.

/Niklas





Reply via email to