Skip to content

Commit 6d435df

Browse files
committed
asap engine does not handle management messages differently. Step towards management message dissemination
1 parent 0787a3a commit 6d435df

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/net/sharksystem/asap/ASAPEngine.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,7 @@ private boolean isASAPManagementMessage(ASAP_PDU_1_0 asapPDU) {
467467
public void handleASAPInterest(ASAP_Interest_PDU_1_0 asapInterest, ASAP_1_0 protocol, OutputStream os)
468468
throws ASAPException, IOException {
469469

470+
/*
470471
if(this.isASAPManagementMessage(asapInterest)) {
471472
//<<<<<<<<<<<<<<<<<<debug
472473
StringBuilder b = new StringBuilder();
@@ -476,6 +477,7 @@ public void handleASAPInterest(ASAP_Interest_PDU_1_0 asapInterest, ASAP_1_0 prot
476477
//>>>>>>>>>>>>>>>>>>>debug
477478
return;
478479
}
480+
*/
479481

480482
// get remote peer
481483
String peer = asapInterest.getPeer();

src/net/sharksystem/asap/protocol/ASAPPersistentConnection.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,8 @@ public void run() {
192192
}
193193
*/
194194
try {
195-
// let engine write their interest
195+
// let engine write their interest - at least management interest is sent which als introduces
196+
// this peer to the other one
196197
this.multiASAPEngineFS.pushInterests(this.os);
197198
} catch (IOException | ASAPException e) {
198199
this.terminate("error when pushing interest: ", e);

0 commit comments

Comments
 (0)