curl-library
Re: SIGPIPE from gnutls with NOSIGNAL?
From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 2 Nov 2006 16:13:13 +0100 (CET)
Date: Thu, 2 Nov 2006 16:13:13 +0100 (CET)
On Tue, 31 Oct 2006, Daniel Stenberg wrote:
> I'll write the gnutls people to see what they have to say about this.
I'll sum up what I learned:
We should set our own versions of send() and recv() for GnuTLS and let them
use the same 4th argument that we do internally in libcurl which avoid
signals.
We use gnutls_transport_set_push_function() and
gnutls_transport_set_pull_function() to tell GnuTLS to use our functions.
If we want/need to pass private data to these callbacks, we can do that by
setting a pointer to a private struct with gnutls_transport_set_ptr() instead
of setting the socket there.
Brendan, would you be interested in taking a shot at this?
-- Commercial curl and libcurl Technical Support: http://haxx.se/curl.htmlReceived on 2006-11-02