diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2023-08-04 13:56:08 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2023-08-07 19:16:24 +0200 |
commit | 7e68ac2c04fac4c32b3f5da71ed227654ceffe05 (patch) | |
tree | 9ce14bb3103919e65c6f2a3bb2c17b303bde2627 /tests/stream | |
parent | f42d4c3bb36034189a55200780d929479ab5e8a8 (diff) |
stream_srv: call setsockopt(SO_NOSIGPIPE) also in srv sockets
Commit 5b0ad8bd851e4ce888b386be68c1821e4f2ca301 added call to
setsockopt(SO_NOSIGPIPE) in order to avoid SIGPIPE being signalled on
platforms not supporting send() flag MSG_NOSIGNAL (macOS, FreeBSD
etc...).
While it may be a topic to discuss whether we support those platorms or
not, the fact that we call an extra setsockopt() during socket creation
doesn't hurt much, and for sure we want to have the same behavior in
client and server.
Hence, this commit adds the same behavior pesent in srv sockets to cli
ones.
Change-Id: I867d8e244e473679abb7e7e7a9b531eeed046436
Diffstat (limited to 'tests/stream')
0 files changed, 0 insertions, 0 deletions