Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WinError 121] The semaphore timeout period has expired #40

Closed
Aloki opened this issue Jul 4, 2018 · 4 comments
Closed

[WinError 121] The semaphore timeout period has expired #40

Aloki opened this issue Jul 4, 2018 · 4 comments

Comments

@Aloki
Copy link

Aloki commented Jul 4, 2018

Such errors often appear in the output. However, this doesn't seem to affect the quality of the connection.
Windows 10 Build 17692, Python 3.7.0

Fatal read error on pipe transport
protocol: <asyncio.streams.StreamReaderProtocol object at 0x000002A9FF98A940>
transport: <_ProactorSocketTransport fd=748>
Traceback (most recent call last):
  File "C:\...\Python37\lib\asyncio\proactor_events.py", line 255, in _loop_reading
    data = fut.result()
  File "C:\...\Python37\lib\asyncio\windows_events.py", line 732, in _poll
    value = callback(transferred, key, ov)
  File "C:\...\Python37\lib\asyncio\windows_events.py", line 428, in finish_recv
    return ov.getresult()
OSError: [WinError 121] The semaphore timeout period has expired
@GoldenOne1
Copy link

Python 3.7 never worked for me
I tested on Windows 2008 2012 2016

I can connect just with Python 3.6.5

And Python 3.6.5 has loop problem (bug)
Maybe that bug solved in 3.7

@GoldenOne1
Copy link

@Aloki

Thats loop bug in Python,I reported this to alexsbers already

With this error you cant load photos is telegram

@alexbers
Copy link
Owner

alexbers commented Jul 5, 2018

Hi! If everything works, I think those timeouts can be ignored. They are likely because some clients silently lose the connections. I added the code to ignore those errors: 6f8bfdb

@Aloki
Copy link
Author

Aloki commented Jul 5, 2018

Yes, everything works. Nice, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants