Prevent socket leak by closing unusable sockets
As reported in https://github.com/eclipse/paho.mqtt.c/issues/135 Socket_new() needs to close unusable sockets. Otherwise further calls of open() may fail, due to insufficient free file descriptors. Signed-off-by:Juergen Kosel <juergen.kosel@softing.com>
Showing
Please
register
or
sign in
to comment