Skip to content

Commit

Permalink
Revert "Mark UDP socket as ready for write in send msg. (#7927)" (#8027)
Browse files Browse the repository at this point in the history
Turns out the code causes that subsequent select()-s never
wait so another solution for the original issue must be
prepared.

This reverts commit 8c55523.
  • Loading branch information
Damian-Nordic authored Jun 30, 2021
1 parent 22c1082 commit bc94bc0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/inet/UDPEndPoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<intptr_t>(this));
mSocket.OnRequestCallbackOnPendingWrite();
#endif // CHIP_SYSTEM_CONFIG_USE_SOCKETS

#if CHIP_SYSTEM_CONFIG_USE_NETWORK_FRAMEWORK
Expand Down

0 comments on commit bc94bc0

Please sign in to comment.