File 23000-3441028-bnc716299-Fix-large-https-requests-Check-SSL-buffer-before-sel.patch of Package sblim-sfcb-sle11-sp2

diff -wruN -x '*~' ../orig-sblim-sfcb-1.3.11/httpAdapter.c ./httpAdapter.c
--- ../orig-sblim-sfcb-1.3.11/httpAdapter.c	2011-03-08 21:47:11.000000000 +0100
+++ ./httpAdapter.c	2011-11-22 10:37:42.000000000 +0100
@@ -379,7 +379,12 @@
    FD_SET(conn_fd.socket,&httpfds);
 
    while (c < length) {
+      if (conn_fd.ssl && SSL_pending(conn_fd.ssl)) {
+	isReady = 1;
+      }
+      else {
       isReady = select(conn_fd.socket+1,&httpfds,NULL,NULL,&httpSelectTimeout);
+      }
       if (isReady == 0) {
          c = -1;
          break;
openSUSE Build Service is sponsored by