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
6c765284
Kaydet (Commit)
6c765284
authored
Eyl 03, 2010
tarafından
Daniel Stutzbach
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fix Issue9753: socket.dup() does not always work right on Windows
üst
06a3c8ae
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
NEWS
Misc/NEWS
+3
-0
socketmodule.c
Modules/socketmodule.c
+5
-8
No files found.
Misc/NEWS
Dosyayı görüntüle @
6c765284
...
...
@@ -155,6 +155,9 @@ Extensions
Library
-------
- Issue #9753: Fixed socket.dup, which did not always work correctly
on Windows.
- Issue #7005: Fixed output of None values for RawConfigParser.write and
ConfigParser.write.
...
...
Modules/socketmodule.c
Dosyayı görüntüle @
6c765284
...
...
@@ -351,16 +351,13 @@ const char *inet_ntop(int af, const void *src, char *dst, socklen_t size);
static
SOCKET
dup_socket
(
SOCKET
handle
)
{
HANDLE
newhandle
;
WSAPROTOCOL_INFO
info
;
if
(
!
DuplicateHandle
(
GetCurrentProcess
(),
(
HANDLE
)
handle
,
GetCurrentProcess
(),
&
newhandle
,
0
,
FALSE
,
DUPLICATE_SAME_ACCESS
))
{
WSASetLastError
(
GetLastError
());
if
(
WSADuplicateSocket
(
handle
,
GetCurrentProcessId
(),
&
info
))
return
INVALID_SOCKET
;
}
return
(
SOCKET
)
newhandle
;
return
WSASocket
(
FROM_PROTOCOL_INFO
,
FROM_PROTOCOL_INFO
,
FROM_PROTOCOL_INFO
,
&
info
,
0
,
0
);
}
#define SOCKETCLOSE closesocket
#else
...
...
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