BlockingIOError: [WinError 10035] A non-blocking socket operation could not be completed immediately
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- python
- Domain
- networking
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.
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
- Dominant language
- Jupyter Notebook
- Stars
- 5.2k
- Forks
- 5.3k
- Avg merge
- 4d 10h
- Merged PRs (30d)
- 10
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.
More from realpython/materials
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
realpython/materials#729 ·
-
п Open
Difficulty 5/5 Over a week Newbie friendliness 1/100
realpython/materials#763 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 55/100
realpython/materials#738 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 45/100
realpython/materials#737 ·
-
проект2 Open
Difficulty 5/5 Over a week Newbie friendliness 15/100
realpython/materials#725 ·
All issues in realpython/materials
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
sonic-net/sonic-mgmt#28113 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
canonical/postgresql-watcher-operator#110 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
EleutherAI/lm-evaluation-harness#4201 ·