Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
52623800
Commit
52623800
authored
Aug 23, 2010
by
Giampaolo Rodolà
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix issue 658749: correctly interprets asyncore's windows errors on connect()
parent
3d39f222
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
Lib/asyncore.py
Lib/asyncore.py
+3
-3
Misc/NEWS
Misc/NEWS
+3
-0
No files found.
Lib/asyncore.py
View file @
52623800
...
...
@@ -53,7 +53,7 @@ import time
import
warnings
import
os
from
errno
import
EALREADY
,
EINPROGRESS
,
EWOULDBLOCK
,
ECONNRESET
,
\
from
errno
import
EALREADY
,
EINPROGRESS
,
EWOULDBLOCK
,
ECONNRESET
,
EINVAL
,
\
ENOTCONN
,
ESHUTDOWN
,
EINTR
,
EISCONN
,
EBADF
,
ECONNABORTED
,
errorcode
try
:
...
...
@@ -337,8 +337,8 @@ class dispatcher:
def
connect
(
self
,
address
):
self
.
connected
=
False
err
=
self
.
socket
.
connect_ex
(
address
)
# XXX Should interpret Winsock return values
if
err
in
(
EINPROGRESS
,
EALREADY
,
EWOULDBLOCK
):
if
err
in
(
EINPROGRESS
,
EALREADY
,
EWOULDBLOCK
)
\
or
err
==
EINVAL
and
os
.
name
in
(
'nt'
,
'ce'
):
return
if
err
in
(
0
,
EISCONN
):
self
.
addr
=
address
...
...
Misc/NEWS
View file @
52623800
...
...
@@ -123,6 +123,9 @@ Extensions
Library
-------
- Issue #658749: asyncore's connect() method now correctly interprets winsock
errors;
- Issue #9501: Fixed logging regressions in cleanup code.
- Fix functools.total_ordering() to actually work.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment