I can't use the socket server when building my application in Release mode. The server is up but it can't get any connection nor messages. I compiled my program with gcc-8.4.0 for x86_64 and with gcc-8.3.0 for arm_32 and both compilations resulted in the same error.
Hence in Release mode, I can't debug the code and using printf in each lib function didn't result in any significant help either. I guess the compiler is optimizing/removing some part of the code that it definitely shouldn't.