mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johny Kadarisman" <jkr...@gmail.com>
Subject Double write msg?
Date Tue, 01 May 2007 19:05:51 GMT
Hi,

I just found mina, and trying all the example.

One thing that confused me when I run sumup client, the request was sent
twice? the only parameters is '10'
Is this the right behaviour?

74 [DatagramConnector-0] INFO
org.apache.mina.example.sumup.ClientSessionHandler -
[localhost/127.0.0.1:8080] CREATED
78 [AnonymousIoService-1] INFO
org.apache.mina.example.sumup.ClientSessionHandler -
[localhost/127.0.0.1:8080] OPENED
80 [AnonymousIoService-1] INFO
org.apache.mina.example.sumup.ClientSessionHandler -
[localhost/127.0.0.1:8080] WRITE: 0:ADD(10)
88 [main] INFO org.apache.mina.example.sumup.ClientSessionHandler -
[localhost/127.0.0.1:8080] WRITE: 0:ADD(10)
90 [AnonymousIoService-2] INFO
org.apache.mina.example.sumup.ClientSessionHandler -
[localhost/127.0.0.1:8080] SENT: 0:ADD(10)
91 [AnonymousIoService-2] INFO
org.apache.mina.example.sumup.ClientSessionHandler -
[localhost/127.0.0.1:8080] SENT: 0:ADD(10)
94 [AnonymousIoService-2] INFO
org.apache.mina.example.sumup.ClientSessionHandler -
[localhost/127.0.0.1:8080] RECEIVED: 0:RESULT(10)
94 [AnonymousIoService-2] INFO
org.apache.mina.example.sumup.ClientSessionHandler -
[localhost/127.0.0.1:8080] The sum: 10
94 [AnonymousIoService-2] INFO
org.apache.mina.example.sumup.ClientSessionHandler -
[localhost/127.0.0.1:8080] CLOSE
94 [AnonymousIoService-2] INFO
org.apache.mina.example.sumup.ClientSessionHandler -
[localhost/127.0.0.1:8080] RECEIVED: 0:RESULT(20)
95 [AnonymousIoService-2] INFO
org.apache.mina.example.sumup.ClientSessionHandler -
[localhost/127.0.0.1:8080] The sum: 20
96 [AnonymousIoService-3] INFO
org.apache.mina.example.sumup.ClientSessionHandler -
[localhost/127.0.0.1:8080] CLOSED

But, when I run it in debug and step thru it, it was only sent once. (as
below)

110 [DatagramConnector-0] INFO
org.apache.mina.example.sumup.ClientSessionHandler -
[localhost/127.0.0.1:8080] CREATED
122 [AnonymousIoService-1] INFO
org.apache.mina.example.sumup.ClientSessionHandler -
[localhost/127.0.0.1:8080] OPENED
4468 [AnonymousIoService-1] INFO
org.apache.mina.example.sumup.ClientSessionHandler -
[localhost/127.0.0.1:8080] WRITE: 0:ADD(10)
12008 [AnonymousIoService-1] INFO
org.apache.mina.example.sumup.ClientSessionHandler -
[localhost/127.0.0.1:8080] SENT: 0:ADD(10)
13713 [AnonymousIoService-1] INFO
org.apache.mina.example.sumup.ClientSessionHandler -
[localhost/127.0.0.1:8080] RECEIVED: 0:RESULT(10)
13714 [AnonymousIoService-1] INFO
org.apache.mina.example.sumup.ClientSessionHandler -
[localhost/127.0.0.1:8080] The sum: 10
13714 [AnonymousIoService-1] INFO
org.apache.mina.example.sumup.ClientSessionHandler -
[localhost/127.0.0.1:8080] CLOSE
17049 [AnonymousIoService-1] INFO
org.apache.mina.example.sumup.ClientSessionHandler -
[localhost/127.0.0.1:8080] CLOSED

I run it from eclipse on linux.

Thanks,
Johny K.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message