>> Otherwise, I suggest you add this line in the AbstractPollincConnection >> class, line 927 : >> >> try { >> localWrittenBytes = write(session, buf, length); >> } catch (IOException ioe) { >> // We have had an issue while trying to send data to the >> // peer : let's close the session. >> buf.free(); >> session.close(true); >> >> destroy(session); // <<<<<<<<<<<<<<<<<---- This line >> >> return 0; >> } >> >> Can you give that a try ? >> > Thanks, we'll give it a try. What version of mina are you basing that > changes on? Would I be right in assuming that you copied that from the > top-of-tree 2.0 branch? I don't see the "buf.free()" or "return 0" lines > in the 2.0.7 code. How important are those changes?
Sorry the code is comming from Mina 2.0 branch (https://git-wip-us.apache.org/repos/asf?p=mina.git;a=tree;h=refs/heads/2.0.8;hb=2.0.8) > > >> 2.0.8 is not out anyway... > > We're not above using unreleased versions if they fix critical bugs... :) If this fixes your problem, I do think it deserves a release : it's a critical bug. At least, I can jsut say that the fix does not break the build, so I'm probably going to commit it anyway. Just let me know if that's a good enough fix for you ! Thanks for the report. Btw, may you create a JIRA so that we can track down the issue ? Thanls ! -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com