Sigmund Vik
Sigmund Vik
I am running into the same problem, but the merged fix alone does not make the "Error binding a server socket: Address already in use" error happen for me like...
I am on the `1.0` branch (commit d5df1c62) with a97cdb3 cherry-picked. Setting the `SO_REUSEADDR` socket option was done long before your fix (you modified the code that sets this option...
I finally got to test this with 1.1 (commit bcec6028). The results are the same as before. Starting two OPC UA servers with the same port produces no error before...
Same behavior for Ubuntu 18.04. I do run it in WSL, let me also check on a native Linux machine.
It works fine without my change on a native Ubuntu 18.04 machine: ``` sigmund@sverre-ubuntu1:~$ ./opc_ua_serverD 9090 [2020-06-05 13:43:18.530 (UTC+0200)] warn/server Username/Password configured, but no encrypting SecurityPolicy. This can leak credentials...
Ah, when I run two programs that both set `IPV6_V6ONLY` to 1 (like two instances of the Mosquitto broker), then I do get the expected behavior (`Error: Only one usage...
The behavior in this regard seems to be different between Windows 10 and Ubuntu 18.04. On Ubuntu, if I create one version of the Mosquitto broker with `IPV6_V6ONLY` set to...
Here is the [commit](https://github.com/SiggyBar/mosquitto/commit/7ed57a1211983af974e9978ebb1a182c7e7a4460) with my suggested fix. It also contains a fix that closes all opened sockets (instead of just the last one) when an error occurred. This should...
It seems to work again if I change the [CtrlRoutine::findAddressByStackBackTrace()](https://github.com/alirdn/windows-kill/blob/aca0a17ca6a070007432504d137d58ad45e196b4/windows-kill-library/ctrl-routine.cpp#L131) function to this: ```C++ void CtrlRoutine::findAddressByStackBackTrace() { HMODULE hModule = GetModuleHandleA("kernel32.dll"); if (hModule != NULL) { this->address = (LPTHREAD_START_ROUTINE)GetProcAddress(hModule, "CtrlRoutine");...