Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
ns3: comment asserts that fail on clusters
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Thu, 27 Dec 2018 00:32:53 +0000 (01:32 +0100)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Thu, 27 Dec 2018 00:32:53 +0000 (01:32 +0100)
src/surf/ns3/ns3_simulator.cpp

index 1c13b30..3e45e50 100644 (file)
@@ -90,9 +90,11 @@ static void datasent_cb(ns3::Ptr<ns3::Socket> socket, uint32_t dataSent)
 static void normalClose_callback(ns3::Ptr<ns3::Socket> socket)
 {
   SgFlow* flow = getFlowFromSocket(socket);
-  XBT_DEBUG("normalClose_cb of F[%p, %p, %u]", flow, flow->action_, flow->total_bytes_);
-  xbt_assert(flow->total_bytes_ == flow->sent_bytes_);
-  xbt_assert(flow->remaining_ == 0);
+  XBT_DEBUG("normalClose_cb of F[%p, %p] total: %u; sent: %u", flow, flow->action_, flow->total_bytes_,
+            flow->sent_bytes_);
+  // xbt_assert(flow->total_bytes_ == flow->sent_bytes_,
+  //    "total_bytes (=%u) is not sent_bytes(=%u)", flow->total_bytes_ , flow->sent_bytes_);
+  // xbt_assert(flow->remaining_ == 0, "Remaining is not 0 but %u", flow->remaining_);
   receive_callback(socket);
 }