On Wed, 2013-03-13 at 20:52 +0000, Mark Thomas wrote: > > I mean check for Socket.setsbb somewhere after the socket is > > returned from poller. Either the new buffer has been set or > > the buffer address is different because of Socket.sendbb's offset param > > (in this case it would be -11530560 so some wrong calculation) > > > > Inside Socket.setsbb we get the ByteBuffer's direct address and later > > reuse it inside Socket.sendbb(long socket, int offset, int len) call > > by using 'socket->jsbuff + offset' and that offseted address is > > displayed in > > the upper debug trace (and if they are not the same OpenSSL will return > > SSL_ERROR_SSL) > > I'm using Socket.send() with the same buffer. > > I'm looking at switching to sendb instead.
If you spare some time to refactor and use sendsbb next after trying sendb, it's supposed to be faster [I never did a real comparison test though]. Rémy --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org