Re: [ nagiosplug-Bugs-3614716 ] np_net_ssl_read fails to take SSL_WANT_READ into account

William Leibzon <[email protected]>
Newsgroups gmane.network.nagios.plugins.devel
Message-ID <CAFCy1BgYjG78SSf92mfBk9aH1abkEhZh_48kwJ_zMKhnPvfSpA@mail.gmail.com>
On Tue, Jul 16, 2013 at 3:31 PM, Holger Weiß <[email protected]> wrote:
> * William Leibzon <[email protected]> [2013-07-16 14:28]:
>> But I agree that this is valid point
>
> Yes.
>
>> and SSL_WANT_READ needs to be handled.
>
> I was going to check whether setting SSL_MODE_AUTO_RETRY¹ would be a
> better choice.  When using blocking I/O, I don't see the point in having
> OpenSSL's I/O functions return SSL_WANT_READ.  I just wanted to make
> sure this won't break GnuTLS (or older OpenSSL versions, but I think
> they introduced SSL_MODE_AUTO_RETRY ages ago).  If GnuTLS supports
> SSL_MODE_AUTO_RETRY, I'd happily pull a commit that sets this mode
> (maybe wrapped in an "#ifdef SSL_MODE_AUTO_RETRY" if it's only supported
> by newer GnuTLS versions).

Yeah, that's even better. It was added in 0.9.6 which is 2004.

William

------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________________
Nagios Plugin Development Mailing List Nagiosplug-devel-5NWGOfrQmneRv+LV9MX5upmplPMkL2fr@public.gmane.orget
Unsubscribe at https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel
::: Please include plugins version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.