forked from I2P_Developers/i2p.i2p
NTCP: Fix clearing of write interest ops at
inbound establishment, causing latency on first message (ticket #2237)
This commit is contained in:
@ -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 = 18;
|
||||
public final static long BUILD = 19;
|
||||
|
||||
/** for example "-test" */
|
||||
public final static String EXTRA = "";
|
||||
|
@ -679,7 +679,7 @@ public class NTCPConnection implements Closeable {
|
||||
* as it occurs in the selector thread)
|
||||
*/
|
||||
public void outboundConnected() {
|
||||
_conKey.interestOps(SelectionKey.OP_READ);
|
||||
_conKey.interestOps(_conKey.interestOps() | SelectionKey.OP_READ);
|
||||
// schedule up the beginning of our handshaking by calling prepareNextWrite on the
|
||||
// writer thread pool
|
||||
_transport.getWriter().wantsWrite(this, "outbound connected");
|
||||
|
Reference in New Issue
Block a user