forked from I2P_Developers/i2p.i2p
* I2CP: Buffer output streams
* ClientConnectionRunner: More cleanups and edge cases
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package net.i2p.client;
|
||||
|
||||
import java.io.BufferedOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
import java.util.concurrent.BlockingQueue;
|
||||
@@ -29,7 +30,7 @@ class ClientWriterRunner implements Runnable {
|
||||
|
||||
/** starts the thread too */
|
||||
public ClientWriterRunner(OutputStream out, I2PSessionImpl session) {
|
||||
_out = out;
|
||||
_out = new BufferedOutputStream(out);
|
||||
_session = session;
|
||||
_messagesToWrite = new LinkedBlockingQueue(MAX_QUEUE_SIZE);
|
||||
Thread t = new I2PAppThread(this, "I2CP Client Writer " + (++__Id), true);
|
||||
|
||||
Reference in New Issue
Block a user