Hey guys, thanks for discussing this issue. While the approach that I was using may have been the wrong approach, this issue seems to be valid in the sense that if there is "processing time" that is simulated by the Thread sleeping in the test case, then the write would not take place until all "think time" is completed along with the writing itself. I'm no longer pushing for a manual override as that is counter productive for the overall purpose of the framework. I would be in favor, however, of a mechanism whereby the blocking would be detected and the write would get flushed to the kernel. I'm not sure which way would work best however (throwing an exception vs other options).
With this said, I have had to abandon the approach that I was taking to issue write requests as it didn't give me enough control over the sessions writes and/or handling of responses of those write requests before continuing. Extending the StreamIoHandler seems to be a better option, although yet tricky. I will attempt to contribute the solution in a generic format as it may be helpful to others in the future once I have it finalized. Keep up the great work! -Ussama Baggili JIRA [EMAIL PROTECTED] wrote: > > > [ > https://issues.apache.org/jira/browse/DIRMINA-456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12535747 > ] > > Heath Borders commented on DIRMINA-456: > --------------------------------------- > > I'd be in favor of throwing an Exception rather than trying to complete > everything inside awaitUninterruptibly for simplicity. > > Additionally, since we don't necessarily have control over the Executor, > we might not be able to determine whether we are in a deadlock situation > at all. > >> Provide mechanism for flushing writeBuffer from IoHandler.messageReceived >> ------------------------------------------------------------------------- >> >> Key: DIRMINA-456 >> URL: https://issues.apache.org/jira/browse/DIRMINA-456 >> Project: MINA >> Issue Type: Improvement >> Components: Core >> Affects Versions: 2.0.0-M1 >> Reporter: Mike Heath >> Fix For: 2.0.0-M1 >> >> >> As described in this thread http://tinyurl.com/3cwkb3, we need to provide >> support for flushing the session's write queue from the >> IoHandler.messageRecieved() method. > > -- > This message is automatically generated by JIRA. > - > You can reply to this email to add a comment to the issue online. > > > -- View this message in context: http://www.nabble.com/-jira--Created%3A-%28DIRMINA-456%29-Provide-mechanism-for-flushing-writeBuffer-from-IoHandler.messageReceived-tf4615609s16868.html#a13267246 Sent from the Apache MINA Support Forum mailing list archive at Nabble.com.
