linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Linphone-developers] belle-sip patch for SIGPIPE


From: Matt Monte
Subject: [Linphone-developers] belle-sip patch for SIGPIPE
Date: Mon, 9 Dec 2013 09:42:20 -0500

All,

I ran across a boundary condition in bellesip/polarssl.

If you select TLS but then connect to a server that does not support it, the socket receives a reset and is closed before bellesip attempts another write. This generates a SIGPIPE signal which brings things to a halt under XCode. (It may be ignored in a release build, I haven't confirmed). There are two solutions:

1. Put in a global handler or global ignore - signal(SIGPIPE, SIG_IGN);

2. Set the options on the socket to ignore SIGPIPE on write.

I choose #2. Attached is a patch for stream_channel.c in stream_channel_connect().

Regards,

Matt.

Attachment: stream_channel.patch
Description: Binary data

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail


reply via email to

[Prev in Thread] Current Thread [Next in Thread]