Hi
I am using Mina as a load test client for testing another softwares response
times. I send data through the IoSession and I can verify that the public
void messageSent(IoSession ioSession, Object o) is run in my code. 

That other software tries to send back to my test client (I can see that
from verifying its logs) but I never get into the test client public void
messageReceived(IoSession ioSession, Object o). 

That other software uses a random source port when sending back to the load
test client and the Mina session seems to be filtering it, ignoring it. I am
using the following constructor.

ConnectFuture connFuture = connector.connect(new InetSocketAddress(host,
serverPort),
                    new InetSocketAddress("localhost", vehiclePort));

So the other software will send back to me on "localhost, vehiclePort" while
IT'S source port will be random. Can I make this work in Mina? 

best regards Johan Persson 





--
View this message in context: 
http://apache-mina.10907.n7.nabble.com/Can-I-send-with-a-random-source-port-tp43846.html
Sent from the Apache MINA User Forum mailing list archive at Nabble.com.

Reply via email to