kc3-lang/libevent/bufferevent_openssl.c

Branch :


Log

Author Commit Date CI Message
ac356502 2012-11-07 19:48:22 remove stray 'x' so print_err will compile when uncommented
1ff2c249 2012-10-24 22:48:59 Merge remote-tracking branch 'public/20_bev_timeout_semantics' into patches-2.0
1acf2ebc 2012-09-06 10:01:10 No need to reserve space if reading is suspended. Conflicts: bufferevent_openssl.c
f719b8a9 2012-09-03 21:42:15 Stop looping in "consider_reading" if reading is suspended.
576b29f2 2012-09-07 15:53:02 Don't discard SSL read event when timeout and read come close together
606ac43b 2012-08-22 12:30:42 Correctly invoke callbacks when a SSL bufferevent reads some and then blocks. Based on a patch by Andrew Hochhaus, who correctly diagnosed this bug.
4e62cd16 2012-03-30 15:08:40 Fixed potential double-readcb execution with openssl bufferevents. the function do_read() will call SSL_read(), and if successful, will call _bufferevent_run_readcb() before returning to consider_reading(). consider_reading() will then check SSL_pending() to make sure all pending data has also been read. If it does not, do_read() is called again. The issue with this is the possibility that the function that is executed by _bufferevent_run_readcb() called bufferevent_disable(ssl_bev, EV_READ) before the second do_read(); In this case, the users read callback is executed a second time. This is potentially bad for applications that expect the bufferevent to stay disabled until further notice. (this is why running openssl bufferevents without DEFER_CALLBACKS has always been troublesome).
e49e2891 2012-02-10 17:29:53 Update copyright notices to 2012
5b4b8126 2012-02-06 12:24:49 Loop on filtering SSL reads until we are blocked or exhausted. This is not a perfect fix, but it's much much better than the current buggy behavior, which could lead to filtering SSL connections that just stopped reading. Based on ideas by Maseeb Abdul Qadir and Mark Ellzey.
ebf82199 2011-11-17 17:42:45 add comment to new consider_reading code