There is a possibility that SIGPIPE thrown on the socket timeout or not / lost connection inside this library. Perhaps on their side or something, a server failure may occur.
You can get around ignoring SIGPIPE with:
signal(SIGPIPE, SIG_IGN);
or
signal(SIGPIPE, SO_NOSIGPIPE);
Read more about this link .
Alternatively, you can debug further by setting the handler function with
signal(SIGPIPE, yourHandlerFunc);
and check the status of the sockets / ivars / etc in it.
mit3z
source share