Pythonista-Issues icon indicating copy to clipboard operation
Pythonista-Issues copied to clipboard

If I close the Wifi by hand, will pythonsita send FIN to myself?

Open yjqiang opened this issue 6 years ago • 3 comments

I want to control the connect precisely. https://github.com/Dawnnnnnn/bilibili-live-tools/blob/f948cf9accedfa4aac93f77848a761fca587c6b1/bilibiliCilent.py

yjqiang avatar Apr 12 '18 16:04 yjqiang

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.

yjqiang avatar Apr 12 '18 16:04 yjqiang

This is not a pythonista bug

jsbain avatar Nov 02 '18 07:11 jsbain

It is not a bug and I can catch and handle this. But who send the FIN?

yjqiang avatar Nov 02 '18 07:11 yjqiang