forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9ce7f39
committed
Support tcp_keepalives_idle option on Solaris.
Turns out that the socket option for this is named TCP_KEEPALIVE_THRESHOLD,at least according to the tcp(7P) man page for Solaris 11. (But since thattext refers to "SunOS", it's likely pretty ancient.) It appears that thesymbol TCP_KEEPALIVE does get defined on that platform, but it doesn'tseem to represent a valid protocol-level socket option. This leads tobleats in the postmaster log, and no tcp_keepalives_idle functionality.Per bug #14720 from Andrey Lizenko, as well as an earlier report fromDhiraj Chawla that nobody had followed up on. The issue's been theresince we added the TCP_KEEPALIVE code path in commit5acd417, soback-patch to all supported branches.Discussion:https://postgr.es/m/20170627163757.25161.528@wrigleys.postgresql.org1 parent66dee28 commit9ce7f39
2 files changed
+48
-15
lines changedLines changed: 31 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1593 | 1593 |
| |
1594 | 1594 |
| |
1595 | 1595 |
| |
1596 |
| - | |
| 1596 | + | |
1597 | 1597 |
| |
1598 | 1598 |
| |
1599 | 1599 |
| |
| |||
1605 | 1605 |
| |
1606 | 1606 |
| |
1607 | 1607 |
| |
1608 |
| - | |
| 1608 | + | |
| 1609 | + | |
1609 | 1610 |
| |
1610 | 1611 |
| |
1611 | 1612 |
| |
1612 | 1613 |
| |
1613 | 1614 |
| |
1614 | 1615 |
| |
1615 | 1616 |
| |
1616 |
| - | |
| 1617 | + | |
| 1618 | + | |
| 1619 | + | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
1617 | 1628 |
| |
1618 | 1629 |
| |
1619 | 1630 |
| |
1620 | 1631 |
| |
1621 | 1632 |
| |
1622 | 1633 |
| |
1623 | 1634 |
| |
1624 |
| - | |
| 1635 | + | |
1625 | 1636 |
| |
1626 | 1637 |
| |
1627 | 1638 |
| |
| |||
1640 | 1651 |
| |
1641 | 1652 |
| |
1642 | 1653 |
| |
1643 |
| - | |
| 1654 | + | |
| 1655 | + | |
1644 | 1656 |
| |
1645 | 1657 |
| |
1646 | 1658 |
| |
| |||
1659 | 1671 |
| |
1660 | 1672 |
| |
1661 | 1673 |
| |
1662 |
| - | |
| 1674 | + | |
| 1675 | + | |
1663 | 1676 |
| |
1664 | 1677 |
| |
1665 | 1678 |
| |
1666 | 1679 |
| |
1667 | 1680 |
| |
1668 | 1681 |
| |
1669 |
| - | |
| 1682 | + | |
| 1683 | + | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
1670 | 1692 |
| |
1671 | 1693 |
| |
1672 | 1694 |
| |
| |||
1679 | 1701 |
| |
1680 | 1702 |
| |
1681 | 1703 |
| |
1682 |
| - | |
| 1704 | + | |
1683 | 1705 |
| |
1684 | 1706 |
| |
1685 | 1707 |
| |
| |||
1729 | 1751 |
| |
1730 | 1752 |
| |
1731 | 1753 |
| |
1732 |
| - | |
| 1754 | + | |
1733 | 1755 |
| |
1734 | 1756 |
| |
1735 | 1757 |
| |
|
Lines changed: 17 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1263 | 1263 |
| |
1264 | 1264 |
| |
1265 | 1265 |
| |
1266 |
| - | |
| 1266 | + | |
| 1267 | + | |
1267 | 1268 |
| |
1268 | 1269 |
| |
1269 | 1270 |
| |
| |||
1274 | 1275 |
| |
1275 | 1276 |
| |
1276 | 1277 |
| |
1277 |
| - | |
1278 |
| - | |
1279 |
| - | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
1280 | 1292 |
| |
1281 | 1293 |
| |
1282 | 1294 |
| |
| |||
1287 | 1299 |
| |
1288 | 1300 |
| |
1289 | 1301 |
| |
1290 |
| - | |
1291 | 1302 |
| |
1292 | 1303 |
| |
1293 | 1304 |
| |
| |||
1355 | 1366 |
| |
1356 | 1367 |
| |
1357 | 1368 |
| |
1358 |
| - | |
| 1369 | + | |
1359 | 1370 |
| |
1360 | 1371 |
| |
1361 | 1372 |
| |
|
0 commit comments
Comments
(0)