-
-
Notifications
You must be signed in to change notification settings - Fork 573
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
[Threadless] OSError: [WinError 10038] an operation was attempted on something that is not a socket #492
Comments
The problem here is that syscall Alternative to |
@lubosmato Thank you for digging into it. One of the reasons I never enabled I'll check the possibilities at my end, but due to time constraints currently at my end, I won't be able to jump into it anytime soon. I'll appreciate Windows users to chip in with suggestion/proposals/PR and get us past this :) |
FTR |
@webknjaz Thank you for context about Regarding Windows, yes, I never get a chance to test on Windows. I will certainly need some help to get it fixed for Windows. May be one of the Windows users can help dig into it and I can guide as needed. At my end, I'll try to get a Windows VM up on VirtualBox and see how it goes. PS: I am kind of swamped right now due to upcoming month end release (for another project). Give me sometime, will definitely get back to pending issues on GitHub. Thank you 🙏 |
PS: It's about a month I am running Only occasion when I had to stop I am still curious to understand where and why does On Windows, definitely we needs an alternative strategy or may be windows can stay on threaded mode :( |
@lubosmato @webknjaz I wanted to make From what I observe and realize, most |
@abhinavsingh TL;DR This mostly seems problematic under the combination of Python 3.6 and macOS or Windows. We use But we had to only use it under Ubuntu on the 3.8 branch because it also runs tests under Python 3.6 and crashes under macOS/Windows with unclear root cause. |
Thanks for bringing version specific behavior to my notice. I am thinking if this is the case, then may be Solving for |
FWIW for some reason it works under Python 3.7+ on Windows in our CI. No idea why... Maybe we do something to the ioloop that "fixes" it, dunno. |
Per Distribution across python versions:
@webknjaz This is interesting, if that's the case, we could apply same patch within |
Python has a ProactorEventLoop which uses IOCP internally. May be we can look into it at some point. |
UpdateI checked on a Windows system.
Only PS: Threaded uses |
Describe the bug
When starting proxy.py in threadless mode on Windows, OS error is raised. Threaded mode works fine.
Here is a stack trace:
(num workers option is specified only to see the error just once, it occurs on all workers and floods stdout)
I couldn't reproduce it on WSL so I assume this is only Windows problem.
To Reproduce
Steps to reproduce the behavior:
python -m proxy --threadless
on WindowsExpected behavior
Proxy shouldn't raise this error I guess.
Version information
Additional context
Running proxy.py in WSL is without any problem.
mato@mato-pc:/mnt/c/Windows/system32$ python3 --version Python 3.8.5 mato@mato-pc:/mnt/c/Windows/system32$ pip3 list | grep proxy.py proxy.py 2.3.1 mato@mato-pc:/mnt/c/Windows/system32$ python3 -m proxy --threadless 2021-01-28 07:53:20,437 - pid:84 [I] load_plugins:334 - Loaded plugin proxy.http.proxy.HttpProxyPlugin 2021-01-28 07:53:20,437 - pid:84 [I] listen:113 - Listening on ::1:8899 2021-01-28 07:53:20,447 - pid:84 [I] start_workers:136 - Started 16 workers
The text was updated successfully, but these errors were encountered: