Commit 0d4753c
committed
Make SO_NOSIGPIPE best-effort in select backend
On develop, 5 of 6 SO_NOSIGPIPE call sites in the select backend
ignored setsockopt failures (best-effort); only the accept path was
strict, which was itself inconsistent with the rest of the backend.
The refactor propagated the strict behavior into the shared
set_fd_options helper, making all socket-creation paths fail on
SO_NOSIGPIPE errors — a behavior change from develop.
Switch both the accept_policy and set_fd_options to best-effort to
match develop's predominant behavior. Write paths still use
MSG_NOSIGNAL where available, so SO_NOSIGPIPE is a safety net, not
a hard requirement.1 parent 36e1fa0 commit 0d4753c
File tree
1 file changed
+11
-16
lines changed- include/boost/corosio/native/detail/select
1 file changed
+11
-16
lines changedLines changed: 11 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
143 | 146 | | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
| 147 | + | |
| 148 | + | |
153 | 149 | | |
154 | 150 | | |
155 | 151 | | |
| |||
178 | 174 | | |
179 | 175 | | |
180 | 176 | | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
185 | 181 | | |
186 | 182 | | |
187 | | - | |
188 | | - | |
189 | | - | |
| 183 | + | |
| 184 | + | |
190 | 185 | | |
191 | 186 | | |
192 | 187 | | |
| |||
0 commit comments