Opened 13 years ago

Closed 13 years ago

#1538 closed enhancement (fixed)

Suppress SIGPIPE for broken TCP connection on Linux (thanks Mike Evans for the suggestion)

Reported by: bennylp Owned by: bennylp
Priority: normal Milestone: release-2.0.1
Component: pjlib Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported: no

Description

PJLIB has been attempting to suppress the delivery of SIGPIPE when send() is called on a broken TCP socket, by applying SO_NOSIGPIPE to the socket. Unfortunately this option is not available on Linux.

This ticket adds the same functionality by adding MSG_NOSIGNAL flag to send() if this flag is detected (declared).

Change History (1)

comment:1 Changed 13 years ago by bennylp

  • Resolution set to fixed
  • Status changed from new to closed

In 4170:

Fixed #1538: Suppress SIGPIPE for broken TCP connection on Linux (thanks Mike Evans for the suggestion)

Note: See TracTickets for help on using tickets.