Pythonista-Issues
Pythonista-Issues copied to clipboard
If I close the Wifi by hand, will pythonsita send FIN to myself?
I want to control the connect precisely. https://github.com/Dawnnnnnn/bilibili-live-tools/blob/f948cf9accedfa4aac93f77848a761fca587c6b1/bilibiliCilent.py
In the function (async def ReadSocketData(self, len_wanted)), I catched timeout, reset and fin. But I found that, when I closed the wifi by my hands, then sometimes, the programe return “FIN detected” immediately. I’m not sure whether it is my fault or it is designed for this.
This is not a pythonista bug
It is not a bug and I can catch and handle this. But who send the FIN?