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
b08ff7dc
Kaydet (Commit)
b08ff7dc
authored
Kas 18, 2013
tarafından
Christian Heimes
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Safely downcast SOCKET_T to int in _ssl module
üst
cc6cdce7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
_ssl.c
Modules/_ssl.c
+5
-3
No files found.
Modules/_ssl.c
Dosyayı görüntüle @
b08ff7dc
...
@@ -499,7 +499,7 @@ newPySSLSocket(PySSLContext *sslctx, PySocketSockObject *sock,
...
@@ -499,7 +499,7 @@ newPySSLSocket(PySSLContext *sslctx, PySocketSockObject *sock,
self
->
ssl
=
SSL_new
(
ctx
);
self
->
ssl
=
SSL_new
(
ctx
);
PySSL_END_ALLOW_THREADS
PySSL_END_ALLOW_THREADS
SSL_set_app_data
(
self
->
ssl
,
self
);
SSL_set_app_data
(
self
->
ssl
,
self
);
SSL_set_fd
(
self
->
ssl
,
sock
->
sock_fd
);
SSL_set_fd
(
self
->
ssl
,
Py_SAFE_DOWNCAST
(
sock
->
sock_fd
,
SOCKET_T
,
int
)
);
mode
=
SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER
;
mode
=
SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER
;
#ifdef SSL_MODE_AUTO_RETRY
#ifdef SSL_MODE_AUTO_RETRY
mode
|=
SSL_MODE_AUTO_RETRY
;
mode
|=
SSL_MODE_AUTO_RETRY
;
...
@@ -1378,9 +1378,11 @@ check_socket_and_wait_for_timeout(PySocketSockObject *s, int writing)
...
@@ -1378,9 +1378,11 @@ check_socket_and_wait_for_timeout(PySocketSockObject *s, int writing)
/* See if the socket is ready */
/* See if the socket is ready */
PySSL_BEGIN_ALLOW_THREADS
PySSL_BEGIN_ALLOW_THREADS
if
(
writing
)
if
(
writing
)
rc
=
select
(
s
->
sock_fd
+
1
,
NULL
,
&
fds
,
NULL
,
&
tv
);
rc
=
select
(
Py_SAFE_DOWNCAST
(
s
->
sock_fd
+
1
,
SOCKET_T
,
int
),
NULL
,
&
fds
,
NULL
,
&
tv
);
else
else
rc
=
select
(
s
->
sock_fd
+
1
,
&
fds
,
NULL
,
NULL
,
&
tv
);
rc
=
select
(
Py_SAFE_DOWNCAST
(
s
->
sock_fd
+
1
,
SOCKET_T
,
int
),
&
fds
,
NULL
,
NULL
,
&
tv
);
PySSL_END_ALLOW_THREADS
PySSL_END_ALLOW_THREADS
#ifdef HAVE_POLL
#ifdef HAVE_POLL
...
...
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