restarting pigpiod result in "bind to port 8888 failed (Address already in use)" #298
Closed
Description
I have defined a docker service (in balena) that runs the pigpiod daemon.
The problem is that when I try to restart that service, I am getting the following error:
04.10.19 08:35:11 (+0200) pigpiod 2019-10-04 06:35:11 initInitialise: bind to port 8888 failed (Address already in use)
04.10.19 08:35:11 (+0200) pigpiod Can't initialise pigpio library
I strongly think that the operating system is not allowing immediately to rebind to the same port. So you should wait for TIME_WAIT period before a process again can bind to the same port.