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
f84d1b93
Kaydet (Commit)
f84d1b93
authored
Şub 11, 2006
tarafından
Martin v. Löwis
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Introduce Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE.
Proposed by Tim Peters.
üst
03ca23d8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
0 deletions
+14
-0
_ssl.c
Modules/_ssl.c
+2
-0
socketmodule.c
Modules/socketmodule.c
+7
-0
pyconfig.h
PC/pyconfig.h
+5
-0
No files found.
Modules/_ssl.c
Dosyayı görüntüle @
f84d1b93
...
@@ -377,8 +377,10 @@ check_socket_and_wait_for_timeout(PySocketSockObject *s, int writing)
...
@@ -377,8 +377,10 @@ check_socket_and_wait_for_timeout(PySocketSockObject *s, int writing)
return
SOCKET_HAS_BEEN_CLOSED
;
return
SOCKET_HAS_BEEN_CLOSED
;
/* Guard against socket too large for select*/
/* Guard against socket too large for select*/
#ifndef Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE
if
(
s
->
sock_fd
>=
FD_SETSIZE
)
if
(
s
->
sock_fd
>=
FD_SETSIZE
)
return
SOCKET_INVALID
;
return
SOCKET_INVALID
;
#endif
/* Construct the arguments to select */
/* Construct the arguments to select */
tv
.
tv_sec
=
(
int
)
s
->
sock_timeout
;
tv
.
tv_sec
=
(
int
)
s
->
sock_timeout
;
...
...
Modules/socketmodule.c
Dosyayı görüntüle @
f84d1b93
...
@@ -396,7 +396,14 @@ static int taskwindow;
...
@@ -396,7 +396,14 @@ static int taskwindow;
static
PyTypeObject
sock_type
;
static
PyTypeObject
sock_type
;
/* Can we call select() with this socket without a buffer overrun? */
/* Can we call select() with this socket without a buffer overrun? */
#ifdef Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE
/* Platform can select file descriptors beyond FD_SETSIZE */
#define IS_SELECTABLE(s) 1
#else
/* POSIX says selecting file descriptors beyond FD_SETSIZE
has undefined behaviour. */
#define IS_SELECTABLE(s) ((s)->sock_fd < FD_SETSIZE)
#define IS_SELECTABLE(s) ((s)->sock_fd < FD_SETSIZE)
#endif
static
PyObject
*
static
PyObject
*
select_error
(
void
)
select_error
(
void
)
...
...
PC/pyconfig.h
Dosyayı görüntüle @
f84d1b93
...
@@ -572,4 +572,9 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
...
@@ -572,4 +572,9 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
/* Define if you have the thread library (-lthread). */
/* Define if you have the thread library (-lthread). */
/* #undef HAVE_LIBTHREAD */
/* #undef HAVE_LIBTHREAD */
/* WinSock does not use a bitmask in select, and uses
socket handles greater than FD_SETSIZE */
#define Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE
#endif
/* !Py_CONFIG_H */
#endif
/* !Py_CONFIG_H */
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