Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
389cea8e
Commit
389cea8e
authored
Feb 13, 2006
by
Neal Norwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to improve name based on discussion on python-checkins with Jim Jewett
parent
c45251a4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
Modules/_ssl.c
Modules/_ssl.c
+5
-5
No files found.
Modules/_ssl.c
View file @
389cea8e
...
...
@@ -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
;
}
...
...
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