[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [Libevent-users] PATCH: bufferevent_openssl consider_read doesn't drain underlying BE in all cases



On Mon, Dec 19, 2011 at 07:34:50PM -0600, Mark Ellzey wrote:
> I think I have been able to reproduce this using ssl client + filters.
> More on this in a bit.


This seems to fix the issue:

-               n_to_read = SSL_pending(bev_ssl->ssl);
+               if (!(n_to_read = SSL_pending(bev_ssl->ssl)) && bev_ssl->underlying) {
+                   n_to_read = evbuffer_get_length(bev_ssl->underlying->input);
+               }
+
***********************************************************************
To unsubscribe, send an e-mail to majordomo@xxxxxxxxxxxxx with
unsubscribe libevent-users    in the body.