forked from I2P_Developers/i2p.i2p
* SAM: Don't use direct byte buffers for streams (ticket #679)
DatagramServer one stays as it is a singleton.
This commit is contained in:
@ -566,7 +566,7 @@ public class SAMStreamSession {
|
||||
_log.debug("run() called for socket reader " + id);
|
||||
|
||||
int read = -1;
|
||||
ByteBuffer data = ByteBuffer.allocateDirect(SOCKET_HANDLER_BUF_SIZE);
|
||||
ByteBuffer data = ByteBuffer.allocate(SOCKET_HANDLER_BUF_SIZE);
|
||||
|
||||
try {
|
||||
InputStream in = i2pSocket.getInputStream();
|
||||
|
@ -510,7 +510,7 @@ public class SAMv2StreamSession extends SAMStreamSession
|
||||
_log.debug ( "run() called for socket reader " + id );
|
||||
|
||||
int read = -1;
|
||||
ByteBuffer data = ByteBuffer.allocateDirect(SOCKET_HANDLER_BUF_SIZE);
|
||||
ByteBuffer data = ByteBuffer.allocate(SOCKET_HANDLER_BUF_SIZE);
|
||||
|
||||
try
|
||||
{
|
||||
|
15
history.txt
15
history.txt
@ -1,3 +1,18 @@
|
||||
2012-08-09 zzz
|
||||
* Datagrams: Remove static logs
|
||||
* i2psnark:
|
||||
- Remove static SnarkManager instance
|
||||
- Allow DHT-only torrents
|
||||
- DHT debugging
|
||||
* NTCP: Stat cleanup
|
||||
* SAM:
|
||||
- Don't use direct byte buffers that may be leaking (ticket #679)
|
||||
- Volatiles and finals
|
||||
* SSU:
|
||||
- Don't send a packet that exceeds the MTU
|
||||
- Stub out local MTU detection (ticket #682)
|
||||
- More cleanups
|
||||
|
||||
2012-08-07 str4d
|
||||
* Console:
|
||||
- Theme updates from dr|z3d
|
||||
|
@ -18,7 +18,7 @@ public class RouterVersion {
|
||||
/** deprecated */
|
||||
public final static String ID = "Monotone";
|
||||
public final static String VERSION = CoreVersion.VERSION;
|
||||
public final static long BUILD = 4;
|
||||
public final static long BUILD = 5;
|
||||
|
||||
/** for example "-test" */
|
||||
public final static String EXTRA = "";
|
||||
|
Reference in New Issue
Block a user