You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm developing an app that uses MAVSDK to connect to a device via the built-in MAVSDK TCP connection. MAVSDK has an excellent TCP reconnection mechanism that fits my requirements well, namely the possibility of temporary disconnection. In this case timer is started, which checks every second whether the connection has been restored. But after 16 minutes, this mechanism breaks my app with the message "socket errorToo many open files".
I did some basic research and the problem is that the MAVSDK in a loop reopens the sockets, but does not close them with the close function in case of unsuccessful execution of the connect function.
// from tcp_connection.cpp
_socket_fd = socket(AF_INET, SOCK_STREAM, 0);
I have tested basic fix on Linux, but I don't know if it will work on other operating systems
The text was updated successfully, but these errors were encountered:
I'm developing an app that uses MAVSDK to connect to a device via the built-in MAVSDK TCP connection. MAVSDK has an excellent TCP reconnection mechanism that fits my requirements well, namely the possibility of temporary disconnection. In this case timer is started, which checks every second whether the connection has been restored. But after 16 minutes, this mechanism breaks my app with the message "socket errorToo many open files".
I did some basic research and the problem is that the MAVSDK in a loop reopens the sockets, but does not close them with the
close
function in case of unsuccessful execution of theconnect
function.I have tested basic fix on Linux, but I don't know if it will work on other operating systems
The text was updated successfully, but these errors were encountered: