Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
5fe9cd53
Kaydet (Commit)
5fe9cd53
authored
Agu 21, 2010
tarafından
Giampaolo Rodolà
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
revert changes made in r84236 committed by accident
üst
5c8c9a2c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
17 deletions
+1
-17
smtpd.py
Lib/smtpd.py
+1
-14
NEWS
Misc/NEWS
+0
-3
No files found.
Lib/smtpd.py
Dosyayı görüntüle @
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
Dosyayı görüntüle @
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