[jboss-dev-forums] [Design of Messaging on JBoss (Messaging/JBoss)] - Re: Mixing Blocking and OneWay calls is very slow...
jmesnil
do-not-reply at jboss.com
Tue May 20 09:47:36 EDT 2008
"jmesnil" wrote : "timfox" wrote : One thing I noticed is that if I change it so TCPNoDelay is picked up from the messaging config (currently it's hardcoded on the connector), and tried to run perfSender and perfListener with non persistent messages, not transacted, then the listener seems to not receive any messages.
|
| I think the issue is related to session suspend/resume in MinaHandler.
|
| We can suspendRead the session when we receive a message.
| The resumeRead can occur when we sent a message.
|
| But we have cases where the server receives a lot of one-way messages (potentially suspending the session) and do not send a message (thus never resuming the session).
| E.g. the client acknowledge a lot of messages and close the session.
| At one point, when receiving an ack, the server's MINA Handler will suspendRead the session. Since the server does not send any messages, the session will not be resumeRead and the CLOSE message will not be handled.
|
| We can't assume that we have as much messages received as message sent (and vice versa). It seems we need to rethink our algorithm to take into account these cases.
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4152019#4152019
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4152019
More information about the jboss-dev-forums
mailing list