Changeset fc38d54


Ignore:
Timestamp:
Feb 10, 2011 3:21:23 PM (9 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
e68fbc0
Parents:
5eb511b
Message:
  • I2CP: Correctly close internal connections on the router side

when closed by the client, was causing massive memory leak
for internal clients using lots of sessions (thanks sponge)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • core/java/src/net/i2p/internal/QueuedI2CPMessageReader.java

    r5eb511b rfc38d54  
    4343                    try {
    4444                        msg = in.take();
    45                         if (msg.getType() == PoisonI2CPMessage.MESSAGE_TYPE)
     45                        if (msg.getType() == PoisonI2CPMessage.MESSAGE_TYPE) {
     46                            _listener.disconnected(QueuedI2CPMessageReader.this);
    4647                            cancelRunner();
    47                         else
     48                        } else {
    4849                            _listener.messageReceived(QueuedI2CPMessageReader.this, msg);
     50                        }
    4951                    } catch (InterruptedException ie) {}
    5052                }
Note: See TracChangeset for help on using the changeset viewer.