> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 13, 2006 2:20 PM > To: tomcat-dev@jakarta.apache.org > Subject: svn commit: r393944 - > /tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apach > e/catalina/tribes/transport/nio/NioSender.java > > Author: fhanik > Date: Thu Apr 13 14:20:21 2006 > New Revision: 393944 > > URL: http://svn.apache.org/viewcvs?rev=393944&view=rev > Log: > Fixed, when reusing a send buffer need to set the limit > > writebuf.put(data,offset,length); > writebuf.rewind(); > + //set the limit so that we don't write non wanted data > + writebuf.limit(length);
Wouldn't be easier to just do a writebuf.flip() here? > if (isConnected()) { > socketChannel.register(getSelector(), > SelectionKey.OP_WRITE, this); > } > > This message is intended only for the use of the person(s) listed above as the intended recipient(s), and may contain information that is PRIVILEGED and CONFIDENTIAL. If you are not an intended recipient, you may not read, copy, or distribute this message or any attachment. If you received this communication in error, please notify us immediately by e-mail and then delete all copies of this message and any attachments. In addition you should be aware that ordinary (unencrypted) e-mail sent through the Internet is not secure. Do not send confidential or sensitive information, such as social security numbers, account numbers, personal identification numbers and passwords, to us via ordinary (unencrypted) e-mail. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]