Project

General

Profile

Bug #1718

Updated by Alex Afanasyev over 10 years ago

When on-demand UdpFace is being closed, the object itself is still alive. 

 To check: 

 - in `udp-face.cpp` on line 128 (just after close()): 

         

     NFD_LOG_ERROR("Remaining references: " << this->shared_from_this().use_count() - 1); 

 - run NFD 

 - from another machine either send UDP packet with `nc` or establish udp face towards the machine 

 - wait 

 Expectation: `Remaining references: 0` (or crash) 

 Actual: `Remaining references: 2` 


 This may not be just UdpFace, I just discovered it with idle UdpFace.    Where could we forgotten this face? 

Back