Re: The confusing console messages using the tennis example in the mina-1.1.4.zip

2007-11-28 Thread gapper
There are the source files: Main.java: http://www.nabble.com/file/p1396/Main.java Main.java TennisBall.java: http://www.nabble.com/file/p1396/TennisBall.java TennisBall.java TennisPlayer.java: http://www.nabble.com/file/p1396/TennisPlayer.java TennisPlayer.java -- View this mess

Re: Need help to identify possible race condition in this snippet

2007-11-28 Thread Brad Harvey
Hi Tirthankar, Generally speaking, you have to go out of your way to make messageReceived not process messages from the same connection in order one at a time (something to do with UnorderedExecutorFilter in the trunk, I believe). So, if all your messages are on a single TCP/IP connection th

The confusing console messages using the tennis example in the mina-1.1.4.zip

2007-11-28 Thread gapper
Hi,all I tried the example tennis in the mina-1.1.4.zip. The tennis is very simple just like a tennis game, Player-0 is the server, which first send a message 'PING (10)'. Player-1 is the client which receive the message 'PING (10)' and response a new message 'PONG (9)' to the server. So, I gu

Re: The confusing console messages using the tennis example in the mina-1.1.4.zip

2007-11-28 Thread Maarten Bosteels
It's a timing "issue". Well it's not really an issue except if you want the lines on the console to be in *strict* chronological order. 1) Main is calling: session.write(new TennisBall(10)); 2) the server receives this message and writes two message to the console Player-0: RCVD PING (10) Player-

Re: Using Proxy utiliy to send/receive http messages

2007-11-28 Thread Anshuk
Hi, PFA the required source code files. Regards, Anshuk Anshuk wrote: > > Hi, > > I was trying to make a small utility like a proxy server which would be > used to get hold of the httprequest message sent by the http client, > decode the request, and then pass the same httprequest to the act

Feed back wanted: Allowing a user to change the local addresses of an acceptor.

2007-11-28 Thread Trustin Lee
Hi community, Currently, MINA 2.0.0-M1-SNAPSHOT doesn't allow a user to call setLocalAddresses() after IoAcceptor.bind() is called. To change the local addresses, a user have to unbind, change the localAddresses property and bind again, which is not very convenient and causes interruption of serv

[jira] Created: (DIRMINA-486) Deadlock in SocketConnectorIoProcessor & AnonymousIoService

2007-11-28 Thread Roger Kapsi (JIRA)
Deadlock in SocketConnectorIoProcessor & AnonymousIoService --- Key: DIRMINA-486 URL: https://issues.apache.org/jira/browse/DIRMINA-486 Project: MINA Issue Type: Bug Component

Re: Feed back wanted: Allowing a user to change the local addresses of an acceptor.

2007-11-28 Thread Maarten Bosteels
+1 for idea #1 On Nov 28, 2007 4:05 PM, Trustin Lee <[EMAIL PROTECTED]> wrote: > Hi community, > > Currently, MINA 2.0.0-M1-SNAPSHOT doesn't allow a user to call > setLocalAddresses() after IoAcceptor.bind() is called. To change the > local addresses, a user have to unbind, change the localAddres

final AbstractIoSession

2007-11-28 Thread Steve Ulrich (proemion)
Hi Mina-folks, we're using the trunk/2.0 version of mina in some of our apps. For test purposes I used a DummySession and mocked the write() and close()-methods with easyMock classextension, because I'm not interested in any other method calls, like get/setAttribute. Some of these Methods are cal

Re: Feed back wanted: Allowing a user to change the local addresses of an acceptor.

2007-11-28 Thread Mike Heath
+1 for #1. I think this option makes the most sense. -Mike Trustin Lee wrote: > Hi community, > > Currently, MINA 2.0.0-M1-SNAPSHOT doesn't allow a user to call > setLocalAddresses() after IoAcceptor.bind() is called. To change the > local addresses, a user have to unbind, change the localAddr

help writing a codec-enabled asynchronous client application

2007-11-28 Thread Tzvika Barenholz
Hi all I'm writing a simulator that needs to make many (say 1,000) connections to a server, interact with it using a commutative protocol, and examine the various server responses. I am familiar with how to write such a *Server* using the MINA api, but I can't seem to find any sample code or direc

Re: Cyclic dependencies in mina-statemachine

2007-11-28 Thread Niklas Therning
Trustin Lee wrote: Hi, I've just ran JDepends against the current trunk, and it found some cyclic dependencies: -- - Package Dependency Cycles: -- org.apache.mina.example.tapedeck | | org.

Re: Memory leak in MINA 1.1.4

2007-11-28 Thread Matt Phillips
An update: it appears that this is not a memory leak, but a consequence of the way the Java 6 VM GC works combined with the NIO buffering system. Using "jmap -histo:live" was the way to go: it showed a fairly constant size after a while because it seems to force a general GC, whereas the "-histo"

Re: final AbstractIoSession

2007-11-28 Thread Trustin Lee
Hi Steve, On Nov 29, 2007 1:37 AM, Steve Ulrich (proemion) <[EMAIL PROTECTED]> wrote: > > Hi Mina-folks, > > we're using the trunk/2.0 version of mina in some of our apps. > For test purposes I used a DummySession and mocked the write() and > close()-methods with easyMock classextension, because I

Re: final AbstractIoSession

2007-11-28 Thread Trustin Lee
On Nov 29, 2007 10:18 AM, Trustin Lee <[EMAIL PROTECTED]> wrote: > Hi Steve, > > On Nov 29, 2007 1:37 AM, Steve Ulrich (proemion) > <[EMAIL PROTECTED]> wrote: > > > > Hi Mina-folks, > > > > we're using the trunk/2.0 version of mina in some of our apps. > > For test purposes I used a DummySession an

Re: help writing a codec-enabled asynchronous client application

2007-11-28 Thread Trustin Lee
Hi Tzvika, On Nov 29, 2007 2:04 AM, Tzvika Barenholz <[EMAIL PROTECTED]> wrote: > Hi all > > I'm writing a simulator that needs to make many (say 1,000) connections to a > server, interact with it using a commutative protocol, and examine the > various server responses. I am familiar with how to w