Changeset 0c4d8fc in code
- Timestamp:
-
Mar 4, 2014, 11:17:15 AM
(11 years ago)
- Author:
- Mike Belopuhov <mike@…>
- Branches:
- master
- Children:
- d488e1b
- Parents:
- 5815eef
- git-author:
- Stuart Henderson <stu@…> (03/02/14 11:53:58)
- git-committer:
- Mike Belopuhov <mike@…> (03/04/14 11:17:15)
- Message:
-
enable tcp keepalives to help clear out dead connections
-
File:
-
Legend:
- Unmodified
- Added
- Removed
-
r5815eef
|
r0c4d8fc
|
|
175 | 175 | } |
176 | 176 | |
| 177 | if (setsockopt(s, SOL_SOCKET, SO_KEEPALIVE, &on, |
| 178 | sizeof on) < 0) { |
| 179 | cause = "SO_KEEPALIVE"; |
| 180 | save_errno = errno; |
| 181 | (void)close(s); |
| 182 | continue; |
| 183 | } |
| 184 | |
177 | 185 | if (setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &on, |
178 | 186 | sizeof on) < 0) { |