cn-uofbasel / PiCN

PiCN: Python ICN and NFN by University of Basel
BSD 3-Clause "New" or "Revised" License
18 stars 14 forks source link

Fixed "Address Already In Use" error in the LayerStack tests. #19

Closed s3lph closed 6 years ago

s3lph commented 6 years ago

This issue was introduced, because the LayerStack tests used, among other layers, the UDP4LinkLayer, which creates a socket and binds it to 0.0.0.0:<port>. The tests never use start_process and stop_process, thus the socket is never closed.

This fix works around this by simply using another type of layer, which does not bring this type of problem.