Skip to content

"OSError: [WinError 87] The parameter is incorrect" when using more than 1 thread #267

@FiZiX

Description

@FiZiX

Getting the following error when using more than 1 thread on Windows 11:

Accept failed on a socket
socket: <asyncio.TransportSocket fd=8, family=2, type=1, proto=6, laddr=('0.0.0.0', 3128)>
Traceback (most recent call last):
  File "asyncio\proactor_events.py", line 862, in loop
  File "asyncio\windows_events.py", line 550, in accept
  File "asyncio\windows_events.py", line 710, in _register_with_iocp
OSError: [WinError 87] The parameter is incorrect

Full log:

1778270206: /_bootstrap/run/start_worker: Host-only mode - overriding 'listen' and binding to all interfaces
1778270206: /_bootstrap/run/start_worker: Px will automatically restrict access to host interfaces
1778270206: /_bootstrap/run/start_worker: Removing default 'allow' everyone rule
1778270206: /run/start_worker/parse_config: Reloading proxy
1778270206: /reload_proxy/__init__/__init__: {'localhost'}
1778270206: /start_worker/parse_config/reload_proxy: Proxy mode = MODE_CONFIG
1778270206: /start_worker/parse_config/__init__: Host: x86_64-w64-mingw32 Python: v3.13.12
1778270206: /start_worker/parse_config/__init__: libcurl/8.18.0 Schannel zlib/1.3.2 zstd/1.5.7 nghttp2/1.68.0
1778270206: /start_worker/parse_config/__init__: Features: Kerberos NTLM SPNEGO SSL SSPI 
Serving at :3128 proc Process-1
1778270206: /run/start_worker/print_banner: Freed console successfully
1778270206: /_bootstrap/run/start_worker: Px v0.11.0
1778270206: /_bootstrap/run/start_worker: proxy:server = ***************.com:8080
1778270206: /_bootstrap/run/start_worker: proxy:pac = 
1778270206: /_bootstrap/run/start_worker: proxy:pac_encoding = 
1778270206: /_bootstrap/run/start_worker: proxy:port = 3128
1778270206: /_bootstrap/run/start_worker: proxy:listen = 
1778270206: /_bootstrap/run/start_worker: proxy:gateway = 0
1778270206: /_bootstrap/run/start_worker: proxy:hostonly = 1
1778270206: /_bootstrap/run/start_worker: proxy:allow = 
1778270206: /_bootstrap/run/start_worker: proxy:noproxy = 127.0.0.1,localhost
1778270206: /_bootstrap/run/start_worker: proxy:useragent = 
1778270206: /_bootstrap/run/start_worker: proxy:username = 
1778270206: /_bootstrap/run/start_worker: proxy:auth = 
1778270206: /_bootstrap/run/start_worker: proxy:kerberos = 0
1778270206: /_bootstrap/run/start_worker: settings:workers = 2
1778270206: /_bootstrap/run/start_worker: settings:threads = 32
1778270206: /_bootstrap/run/start_worker: settings:idle = 30
1778270206: /_bootstrap/run/start_worker: settings:socktimeout = 20.0
1778270206: /_bootstrap/run/start_worker: settings:proxyreload = 60
1778270206: /_bootstrap/run/start_worker: settings:foreground = 0
1778270206: /_bootstrap/run/start_worker: settings:log = 2
Accept failed on a socket
socket: <asyncio.TransportSocket fd=8, family=2, type=1, proto=6, laddr=('0.0.0.0', 3128)>
Traceback (most recent call last):
  File "asyncio\proactor_events.py", line 862, in loop
  File "asyncio\windows_events.py", line 550, in accept
  File "asyncio\windows_events.py", line 710, in _register_with_iocp
OSError: [WinError 87] The parameter is incorrect

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions