]> git.pld-linux.org Git - packages/python.git/commitdiff
- updated for 2.4.3
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 30 Mar 2006 20:32:13 +0000 (20:32 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    python-ssl-nonblocking.patch -> 1.4

python-ssl-nonblocking.patch

index da30c6a7856cdda7df15e9dd30ad2394684a1b19..ef3e76ebdd45a016087aed5f78ef468af38731ee 100644 (file)
@@ -1,5 +1,6 @@
---- Python.org/Lib/test/test_socket_ssl.py.org 2005-12-14 23:04:19.000000000 +0100
-+++ Python/Lib/test/test_socket_ssl.py 2005-12-14 23:06:07.000000000 +0100
+diff -ur Python-2.4.3.org/Lib/test/test_socket_ssl.py Python-2.4.3/Lib/test/test_socket_ssl.py
+--- Python-2.4.3.org/Lib/test/test_socket_ssl.py       2003-07-01 16:49:32.000000000 +0200
++++ Python-2.4.3/Lib/test/test_socket_ssl.py   2006-03-30 22:23:37.724691000 +0200
 @@ -27,6 +27,19 @@
      buf = f.read()
      f.close()
  
  if __name__ == "__main__":
      test_main()
---- Python.opg/Modules/_ssl.c.org      2005-12-15 18:17:03.000000000 +0100
-+++ Python/Modules/_ssl.c      2005-12-15 18:18:42.000000000 +0100
-@@ -455,6 +455,7 @@
+diff -ur Python-2.4.3.org/Modules/_ssl.c Python-2.4.3/Modules/_ssl.c
+--- Python-2.4.3.org/Modules/_ssl.c    2006-02-13 01:37:09.000000000 +0100
++++ Python-2.4.3/Modules/_ssl.c        2006-03-30 22:25:51.753067250 +0200
+@@ -468,6 +468,7 @@
        int len = 1024;
        int sockstate;
        int err;
@@ -38,7 +40,7 @@
  
        if (!PyArg_ParseTuple(args, "|i:read", &len))
                return NULL;
-@@ -462,11 +463,17 @@
+@@ -475,14 +476,20 @@
        if (!(buf = PyString_FromStringAndSize((char *) 0, len)))
                return NULL;
  
@@ -47,6 +49,9 @@
 -              PyErr_SetString(PySSLErrorObject, "The read operation timed out");
 -              Py_DECREF(buf);
 -              return NULL;
+-      } else if (sockstate == SOCKET_TOO_LARGE_FOR_SELECT) {
+-              PyErr_SetString(PySSLErrorObject, "Underlying socket too large for select().");
+-              return NULL;
 +      Py_BEGIN_ALLOW_THREADS
 +      pending = SSL_pending(self->ssl);
 +      Py_END_ALLOW_THREADS
 +                      PyErr_SetString(PySSLErrorObject, "The read operation timed out");
 +                      Py_DECREF(buf);
 +                      return NULL;
++              } else if (sockstate == SOCKET_TOO_LARGE_FOR_SELECT) {
++                      PyErr_SetString(PySSLErrorObject, "Underlying socket too large for select().");
++                      return NULL;
 +              }
        }
        do {
                err = 0;
-
This page took 0.034985 seconds and 4 git commands to generate.