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
47617ab2
Commit
47617ab2
authored
Aug 04, 2010
by
Giampaolo Rodolà
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix issue #2944: asyncore doesn't handle connection refused correctly (patch by Alexander Shigin)
parent
0b5019fe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
Lib/asyncore.py
Lib/asyncore.py
+4
-1
Misc/ACKS
Misc/ACKS
+1
-0
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/asyncore.py
View file @
47617ab2
...
...
@@ -435,8 +435,11 @@ class dispatcher:
self
.
handle_read
()
def
handle_connect_event
(
self
):
self
.
connected
=
True
err
=
self
.
socket
.
getsockopt
(
socket
.
SOL_SOCKET
,
socket
.
SO_ERROR
)
if
err
!=
0
:
raise
socket
.
error
(
err
,
_strerror
(
err
))
self
.
handle_connect
()
self
.
connected
=
True
def
handle_write_event
(
self
):
if
self
.
accepting
:
...
...
Misc/ACKS
View file @
47617ab2
...
...
@@ -871,3 +871,4 @@ Uwe Zessin
Tarek Ziadé
Peter Åstrand
Andrej Krpic
Alexander Shigin
Misc/NEWS
View file @
47617ab2
...
...
@@ -24,6 +24,8 @@ Core and Builtins
Library
-------
- Issue #2944: asyncore doesn't handle connection refused correctly.
- Issue #3196: email header decoding is now forgiving if an RFC2047
encoded word encoded in base64 is lacking padding.
...
...
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