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
5fe9cd53
Commit
5fe9cd53
authored
Aug 21, 2010
by
Giampaolo Rodolà
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert changes made in r84236 committed by accident
parent
5c8c9a2c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
17 deletions
+1
-17
Lib/smtpd.py
Lib/smtpd.py
+1
-14
Misc/NEWS
Misc/NEWS
+0
-3
No files found.
Lib/smtpd.py
View file @
5fe9cd53
...
...
@@ -414,20 +414,7 @@ class SMTPServer(asyncore.dispatcher):
localaddr
,
remoteaddr
),
file
=
DEBUGSTREAM
)
def
handle_accept
(
self
)
try
:
conn
,
addr
=
self
.
accept
()
except
TypeError
:
# sometimes accept() might return None
return
except
socket
.
error
,
err
:
# ECONNABORTED might be thrown
if
err
[
0
]
!=
errno
.
ECONNABORTED
:
raise
return
else
:
# sometimes addr == None instead of (ip, port)
if
addr
==
None
:
return
conn
,
addr
=
self
.
accept
()
print
(
'Incoming connection from %s'
%
repr
(
addr
),
file
=
DEBUGSTREAM
)
channel
=
self
.
channel_class
(
self
,
conn
,
addr
)
...
...
Misc/NEWS
View file @
5fe9cd53
...
...
@@ -117,9 +117,6 @@ Extensions
Library
-------
- Issue #9129: smtpd.py module is vulnerable to DoS attacks due to missing
error handling when accepting new connections.
- Issue #843590: Make "macintosh" an alias to the "mac_roman" encoding.
- Create os.fsdecode(): decode from the filesystem encoding with
...
...
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