Mailing Lists
|
|
cURL Mailing List Monthly Index Single Mail
curl-tracker Archives
[curl:bugs] #1180 libcurl can trigger a SIGPIPE
From: Daniel Stenberg <bagder_at_users.sf.net>
Date: Tue, 08 Jan 2013 22:13:17 +0000
- Description has changed:
Diff:
~~~~
--- old
~~~~
- **milestone**: -->
--- ** [bugs:#1180] libcurl can trigger a SIGPIPE** **Status:** open **Created:** Tue Jan 08, 2013 09:57 PM UTC by Daniel Stenberg **Last Updated:** Tue Jan 08, 2013 09:57 PM UTC **Owner:** Daniel Stenberg Using 7.28.1 and current git (jan 8, 2013) libcurl can cause a SIGPIPE to trigger. One situation was possible to trigger with this command line using a libcurl built to use OpenSSL: $ curl --limit-rate 250k -L http://github.com/raspberrypi/firmware/archive/4ade27942e.tar.gz > /dev/null This command redirects to a HTTPS site and then to a second site that it downloads from. When after the (5+ minutes) download the initial HTTPS connection is to be shut down, the OpenSSL calls used will attempt an SSL shutdown but the server has already closed the connection and this triggers a SIGPIPE. OpenSSL (and quite probably a few of the other SSL backends) does not allow us to easily switch off SIGPIPE generation on systems without SO_NOSIGPIPE. The only suitable way to do it that will work is to On the library entry call: check if ignore of the signal is necessary, then ignore it. When leaving the library again: check if libcurl set the ignore, then remove it again. *Inspirational* code for this kind of functionality can be seen here: https://github.com/kroki/XProbes/blob/1447f3d93b6dbf273919af15e59f35cca58fcc23/src/libxprobes.c#L156 - note that the XProbes code is LGPL licensed. Originally reported here: http://curl.haxx.se/mail/archive-2013-01/0003.html by Lluís Batlle i Rossell --- Sent from sourceforge.net because you indicated interest in <https://sourceforge.net/p/curl/bugs/1180/> To unsubscribe from further messages, please visit <https://sourceforge.net/auth/prefs/>Received on 2013-01-08 These mail archives are generated by hypermail. |
Page updated January 05, 2012.
web site info