From 672c58da6f5c98c8a9706698b70434bf5364980e Mon Sep 17 00:00:00 2001 From: Damian Krolik Date: Wed, 30 Jun 2021 15:52:25 +0200 Subject: [PATCH] Revert "Mark UDP socket as ready for write in send msg. (#7927)" Turns out the code causes that subsequent select()-s never wait so another solution for the original issue must be prepared. This reverts commit 8c555239212ca31160df633fa1e68c5a3c46852b. --- src/inet/UDPEndPoint.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/inet/UDPEndPoint.cpp b/src/inet/UDPEndPoint.cpp index 1c539697b3787a..0af80423861c81 100644 --- a/src/inet/UDPEndPoint.cpp +++ b/src/inet/UDPEndPoint.cpp @@ -649,10 +649,6 @@ INET_ERROR UDPEndPoint::SendMsg(const IPPacketInfo * pktInfo, System::PacketBuff SuccessOrExit(res); res = IPEndPointBasis::SendMsg(pktInfo, std::move(msg), sendFlags); - - // Wait for ability to write on this endpoint. - mSocket.SetCallback(HandlePendingIO, reinterpret_cast(this)); - mSocket.OnRequestCallbackOnPendingWrite(); #endif // CHIP_SYSTEM_CONFIG_USE_SOCKETS #if CHIP_SYSTEM_CONFIG_USE_NETWORK_FRAMEWORK