react-native-udp icon indicating copy to clipboard operation
react-native-udp copied to clipboard

fix close socket

Open jan-bogaerts opened this issue 3 years ago • 3 comments

On some devices, the close method remained stuck: the UdpReceiverTask would never stop. This can be fixed by adding a timeout to the socket.

jan-bogaerts avatar Mar 15 '22 16:03 jan-bogaerts

If UdpReceiverTask never stops, it might be better to close the thread executor instead of adding a timeout to the socket.

Rapsssito avatar Mar 22 '22 17:03 Rapsssito

If UdpReceiverTask never stops, it might be better to close the thread executor instead of adding a timeout to the socket.

not really cause internally, the socket will still not be closed.

jan-bogaerts avatar Mar 28 '22 15:03 jan-bogaerts

@jan-bogaerts, oh, I understand. Then, the issue is how the task is being handled. I will try to add a thread handler asap.

Rapsssito avatar Apr 11 '22 07:04 Rapsssito