Changeset 12625a4


Ignore:
Timestamp:
Apr 6, 2009 7:54:19 AM (11 years ago)
Author:
mkvore-commit <mkvore-commit@…>
Branches:
master
Children:
d54695e
Parents:
ab84a5c
Message:

comment added in net.i2p.client.streaming.ConnectionHanler?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/streaming/java/src/net/i2p/client/streaming/ConnectionHandler.java

    rab84a5c r12625a4  
    8282        if (success) {
    8383            SimpleScheduler.getInstance().addEvent(new TimeoutSyn(packet), _acceptTimeout);
     84            // advertise the new syn packet to threads that could be waiting
     85            // (by calling waitSyn(long)
    8486            if (packet.isFlagSet(Packet.FLAG_SYNCHRONIZE))
    8587                synchronized (this._synSignal) {this._synSignal.notifyAll();}
     
    104106                long expiration = now + ms ;
    105107                while ( expiration > now || ms<=0 ) {
    106                         // check we have not missed a SYN packet before entering
    107                         // the lock
     108                        // check if there is a SYN packet in the queue
    108109                        for ( Packet p : this._synQueue ) {
    109110                                if ( p.isFlagSet(Packet.FLAG_SYNCHRONIZE) ) return ;
Note: See TracChangeset for help on using the changeset viewer.