realpython / realpython/materials
BlockingIOError: [WinError 10035] A non-blocking socket operation could not be completed immediately
Nobody has claimed this yet.
- Dominant language
- Jupyter Notebook
- Stars
- 5.2k
- Forks
- 5.3k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 10
Description
When running the example multiconn-client and multiconn-server I get an error:
D:\git\PythonSocketProgramming\PythonSocketProgramming>python multiconn-client.py '127.0.0.1' 65432 1
starting connection 1 to ('127.0.0.1', 65432)
Traceback (most recent call last):
File "multiconn-client.py", line 60, in
start_connections( host, int(port), int(num_cons) )
File "multiconn-client.py", line 21, in start_connections
sock.connect( server_addr )
BlockingIOError: [WinError 10035] A non-blocking socket operation could not be completed immediately
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with multiconn-client.py at line 21, where start_connections calls sock.connect(server_addr), and reproduce the command shown against multiconn-server.py on Windows. Determine how the non-blocking connection is expected to complete and define the change needed for the example to run without the reported BlockingIOError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100