Changeset de07705
- Timestamp:
- Sep 2, 2009 3:02:19 PM (11 years ago)
- Branches:
- master
- Children:
- 58e960c
- Parents:
- 1571907
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
core/java/src/net/i2p/crypto/TransientSessionKeyManager.java
r1571907 rde07705 57 57 * If a single TagSet is not delivered, there will be no stall as long as the 58 58 * current window size is smaller than the minimum tag threshold. 59 * A second consecutive TagSet delivery failure will cause a complete stall, as59 * Additional TagSets will be sent before the acked tags completely run out. See below. 60 60 * all subsequent messages will fail to decrypt. 61 61 * See ConnectionOptions in streaming for more information. … … 421 421 if ( (sessionTags.size() <= 0) && (_log.shouldLog(Log.DEBUG)) ) 422 422 _log.debug("Received 0 tags for key " + key); 423 if (false) aggressiveExpire();423 //if (false) aggressiveExpire(); 424 424 } 425 425 … … 811 811 for (int i = 0; i < _tagSets.size(); i++) { 812 812 TagSet set = _tagSets.get(i); 813 if (set.getDate() + SESSION_TAG_DURATION_MS > now) 814 tags += set.getTags().size(); 813 if (set.getDate() + SESSION_TAG_DURATION_MS > now) { 814 int sz = set.getTags().size(); 815 // so tags are sent when the acked tags are below 816 // 30, 17, and 4. 817 if (!set.getAcked()) 818 sz /= 3; 819 tags += sz; 820 } 815 821 } 816 822 } … … 861 867 private long _date; 862 868 //private Exception _createdBy; 863 /** only used in renderStatusHTML() for debugging*/869 /** did we get an ack for this tagset? */ 864 870 private boolean _acked; 865 871 … … 919 925 920 926 public void setAcked() { _acked = true; } 921 /** only used in renderStatusHTML() for debugging */922 927 public boolean getAcked() { return _acked; } 923 928
Note: See TracChangeset
for help on using the changeset viewer.