Skip to content

Conversation

@ytyisme
Copy link
Contributor

@ytyisme ytyisme commented Sep 25, 2025

Resolves #2661
In Windows, error 10060 will cause socket to reconnect. Add the following code in tcp_client_connection.cpp

inline bool notReady(int err)
{
#ifdef WINDOWS
return err == WSAEWOULDBLOCK || err == WSAETIMEDOUT;
#else
return err == EAGAIN || err == ETIMEDOUT;
#endif
}

@julianoes
Copy link
Collaborator

@ytyisme could you fix style please? ./tools/fix_style.sh .

@sonarqubecloud
Copy link

@ytyisme
Copy link
Contributor Author

ytyisme commented Sep 30, 2025

@ytyisme could you fix style please? ./tools/fix_style.sh .

Sorry, I usually use the Visual Studio compiler.

@julianoes
Copy link
Collaborator

The thread sanitizer issue looks unrelated. And I'll copy it out to its own issue.

@julianoes julianoes merged commit cb17782 into mavlink:main Oct 1, 2025
53 of 54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows tcp/udp reconnect

3 participants