cURL / Mailing Lists / curl-and-php / Single Mail

curl-and-php

Re: Works on slackware fine, bombs on mandrake with same librarie s?

From: <brage_at_martzagency.com>
Date: Tue, 7 Aug 2001 11:35:20 -0700

I'll work with it, seems to me I just need to change the following to try
this?

lib/sendf.c:262
#ifdef USE_SSLEAY
  if (conn->ssl.use) {
    int loop=100; /* just a precaution to never loop endlessly */
    while(loop--) {
      nread = SSL_read(conn->ssl.handle, buf, buffersize);
      if((-1 != nread) ||
         (SSL_ERROR_WANT_READ != SSL_get_error(conn->ssl.handle, nread) ))
        break;
    }
  }
  else {

to

#ifdef USE_SSLEAY
  if (conn->ssl.use) {
    /* int loop=100; just a precaution to never loop endlessly */ (changed)
    while(SSL_pending(conn->ssl.handle)) {
(changed)
      nread = SSL_read(conn->ssl.handle, buf, buffersize);
      if((-1 != nread) ||
         (SSL_ERROR_WANT_READ != SSL_get_error(conn->ssl.handle, nread) ))
        break;
    }
  }
  else {

Thanks for the suggestions.

_______________
 
Jeff Nappi
Lead Programmer
The Martz Agency

brage_at_martzagency.com
480.344.0148

_______________________________________________
Curl-and-php mailing list
http://curl.haxx.se/
Received on 2001-08-07