I have connected to WiFi using RConnection and passing the same instance to RSocket::Open.
I am using multiple threads and WiFi connection management is done in main thread and socket operations are done in another thread.
Every thing is fine, except when WiFi goes completely down. When down, Sendto (UDP) is taking from 600ms to 5 sec to comeout. Ofcourse with error -3.
I am calling User::WaitForRequest() immediately after calling Sendto.[I desperately do this, since I'm porting, I should not change the Framework behaviour]
How to prevent this scenario. My thread blocks on Sendto.
Thanks for your time and help.