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
2374ad7d
Kaydet (Commit)
2374ad7d
authored
Eki 25, 2015
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Sade Fark
merge 3.5 (#25471)
üst
b75e7f52
2775d85d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
socket.py
Lib/socket.py
+5
-1
test_socket.py
Lib/test/test_socket.py
+1
-0
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/socket.py
Dosyayı görüntüle @
2374ad7d
...
...
@@ -193,7 +193,11 @@ class socket(_socket.socket):
For IP sockets, the address info is a pair (hostaddr, port).
"""
fd
,
addr
=
self
.
_accept
()
sock
=
socket
(
self
.
family
,
self
.
type
,
self
.
proto
,
fileno
=
fd
)
# If our type has the SOCK_NONBLOCK flag, we shouldn't pass it onto the
# new socket. We do not currently allow passing SOCK_NONBLOCK to
# accept4, so the returned socket is always blocking.
type
=
self
.
type
&
~
globals
()
.
get
(
"SOCK_NONBLOCK"
,
0
)
sock
=
socket
(
self
.
family
,
type
,
self
.
proto
,
fileno
=
fd
)
# Issue #7995: if no default timeout is set and the listening
# socket had a (non-zero) timeout, force the new socket in blocking
# mode to override platform-specific socket flags inheritance.
...
...
Lib/test/test_socket.py
Dosyayı görüntüle @
2374ad7d
...
...
@@ -3866,6 +3866,7 @@ class NonBlockingTCPTests(ThreadedTCPSocketTest):
read
,
write
,
err
=
select
.
select
([
self
.
serv
],
[],
[])
if
self
.
serv
in
read
:
conn
,
addr
=
self
.
serv
.
accept
()
self
.
assertIsNone
(
conn
.
gettimeout
())
conn
.
close
()
else
:
self
.
fail
(
"Error trying to do accept after select."
)
...
...
Misc/NEWS
Dosyayı görüntüle @
2374ad7d
...
...
@@ -190,6 +190,9 @@ Library
-
Issue
#
13248
:
Remove
deprecated
inspect
.
getargspec
and
inspect
.
getmoduleinfo
functions
.
-
Issue
#
25471
:
Sockets
returned
from
accept
()
shouldn
't appear to be
nonblocking.
- Issue #25319: When threading.Event is reinitialized, the underlying condition
should use a regular lock rather than a recursive lock.
...
...
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