summaryrefslogtreecommitdiff
path: root/Modules
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-02-13 00:37:09 +0000
committerNeal Norwitz <nnorwitz@gmail.com>2006-02-13 00:37:09 +0000
commit8ef3475bc065891e620b399b7dd73ddb0312915f (patch)
tree12597f7150ca54678e0970ce91a26e0cf65d69f9 /Modules
parent3273cb5eee505944f0bcce6abf8d1a6d5ff14e9c (diff)
downloadcpython-git-8ef3475bc065891e620b399b7dd73ddb0312915f.tar.gz
Try to improve name based on discussion on python-checkins with Jim Jewett
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ssl.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index fdfaabcd43..a1c0512523 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -74,7 +74,7 @@ typedef enum {
SOCKET_IS_BLOCKING,
SOCKET_HAS_TIMED_OUT,
SOCKET_HAS_BEEN_CLOSED,
- SOCKET_INVALID,
+ SOCKET_TOO_LARGE_FOR_SELECT,
SOCKET_OPERATION_OK
} timeout_state;
@@ -273,7 +273,7 @@ newPySSLObject(PySocketSockObject *Sock, char *key_file, char *cert_file)
} else if (sockstate == SOCKET_HAS_BEEN_CLOSED) {
PyErr_SetString(PySSLErrorObject, "Underlying socket has been closed.");
goto fail;
- } else if (sockstate == SOCKET_INVALID) {
+ } else if (sockstate == SOCKET_TOO_LARGE_FOR_SELECT) {
PyErr_SetString(PySSLErrorObject, "Underlying socket too large for select().");
goto fail;
} else if (sockstate == SOCKET_IS_NONBLOCKING) {
@@ -379,7 +379,7 @@ check_socket_and_wait_for_timeout(PySocketSockObject *s, int writing)
/* Guard against socket too large for select*/
#ifndef Py_SOCKET_FD_CAN_BE_GE_FD_SETSIZE
if (s->sock_fd >= FD_SETSIZE)
- return SOCKET_INVALID;
+ return SOCKET_TOO_LARGE_FOR_SELECT;
#endif
/* Construct the arguments to select */
@@ -419,7 +419,7 @@ static PyObject *PySSL_SSLwrite(PySSLObject *self, PyObject *args)
} else if (sockstate == SOCKET_HAS_BEEN_CLOSED) {
PyErr_SetString(PySSLErrorObject, "Underlying socket has been closed.");
return NULL;
- } else if (sockstate == SOCKET_INVALID) {
+ } else if (sockstate == SOCKET_TOO_LARGE_FOR_SELECT) {
PyErr_SetString(PySSLErrorObject, "Underlying socket too large for select().");
return NULL;
}
@@ -480,7 +480,7 @@ static PyObject *PySSL_SSLread(PySSLObject *self, PyObject *args)
PyErr_SetString(PySSLErrorObject, "The read operation timed out");
Py_DECREF(buf);
return NULL;
- } else if (sockstate == SOCKET_INVALID) {
+ } else if (sockstate == SOCKET_TOO_LARGE_FOR_SELECT) {
PyErr_SetString(PySSLErrorObject, "Underlying socket too large for select().");
return NULL;
}