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
e00e2f00
Kaydet (Commit)
e00e2f00
authored
Haz 30, 2010
tarafından
Giampaolo Rodolà
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
fix issue #6589: cleanup asyncore.socket_map if smtpd.SMTPServer constructor raises an exception
üst
10947a64
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
9 deletions
+18
-9
smtpd.py
Lib/smtpd.py
+15
-9
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/smtpd.py
Dosyayı görüntüle @
e00e2f00
...
...
@@ -274,15 +274,21 @@ class SMTPServer(asyncore.dispatcher):
self
.
_localaddr
=
localaddr
self
.
_remoteaddr
=
remoteaddr
asyncore
.
dispatcher
.
__init__
(
self
)
self
.
create_socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
# try to re-use a server port if possible
self
.
set_reuse_addr
()
self
.
bind
(
localaddr
)
self
.
listen
(
5
)
print
>>
DEBUGSTREAM
,
\
'
%
s started at
%
s
\n\t
Local addr:
%
s
\n\t
Remote addr:
%
s'
%
(
self
.
__class__
.
__name__
,
time
.
ctime
(
time
.
time
()),
localaddr
,
remoteaddr
)
try
:
self
.
create_socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
# try to re-use a server port if possible
self
.
set_reuse_addr
()
self
.
bind
(
localaddr
)
self
.
listen
(
5
)
except
:
# cleanup asyncore.socket_map before raising
self
.
close
()
raise
else
:
print
>>
DEBUGSTREAM
,
\
'
%
s started at
%
s
\n\t
Local addr:
%
s
\n\t
Remote addr:
%
s'
%
(
self
.
__class__
.
__name__
,
time
.
ctime
(
time
.
time
()),
localaddr
,
remoteaddr
)
def
handle_accept
(
self
):
conn
,
addr
=
self
.
accept
()
...
...
Misc/NEWS
Dosyayı görüntüle @
e00e2f00
...
...
@@ -51,6 +51,9 @@ Build
Library
-------
- Issue #6589: cleanup asyncore.socket_map in case smtpd.SMTPServer constructor
raises an exception.
- Issue #8959: fix regression caused by using unmodified libffi
library on Windows. ctypes does now again check the stack before
and after calling foreign functions.
...
...
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