forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit55968ed
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 parent3a7bd59 commit55968ed
2 files changed
+48
-15
lines changedLines changed: 31 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1653 | 1653 |
| |
1654 | 1654 |
| |
1655 | 1655 |
| |
1656 |
| - | |
| 1656 | + | |
1657 | 1657 |
| |
1658 | 1658 |
| |
1659 | 1659 |
| |
| |||
1665 | 1665 |
| |
1666 | 1666 |
| |
1667 | 1667 |
| |
1668 |
| - | |
| 1668 | + | |
| 1669 | + | |
1669 | 1670 |
| |
1670 | 1671 |
| |
1671 | 1672 |
| |
1672 | 1673 |
| |
1673 | 1674 |
| |
1674 | 1675 |
| |
1675 | 1676 |
| |
1676 |
| - | |
| 1677 | + | |
| 1678 | + | |
| 1679 | + | |
| 1680 | + | |
| 1681 | + | |
| 1682 | + | |
| 1683 | + | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
1677 | 1688 |
| |
1678 | 1689 |
| |
1679 | 1690 |
| |
1680 | 1691 |
| |
1681 | 1692 |
| |
1682 | 1693 |
| |
1683 | 1694 |
| |
1684 |
| - | |
| 1695 | + | |
1685 | 1696 |
| |
1686 | 1697 |
| |
1687 | 1698 |
| |
| |||
1700 | 1711 |
| |
1701 | 1712 |
| |
1702 | 1713 |
| |
1703 |
| - | |
| 1714 | + | |
| 1715 | + | |
1704 | 1716 |
| |
1705 | 1717 |
| |
1706 | 1718 |
| |
| |||
1719 | 1731 |
| |
1720 | 1732 |
| |
1721 | 1733 |
| |
1722 |
| - | |
| 1734 | + | |
| 1735 | + | |
1723 | 1736 |
| |
1724 | 1737 |
| |
1725 | 1738 |
| |
1726 | 1739 |
| |
1727 | 1740 |
| |
1728 | 1741 |
| |
1729 |
| - | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
| 1745 | + | |
| 1746 | + | |
| 1747 | + | |
| 1748 | + | |
| 1749 | + | |
| 1750 | + | |
| 1751 | + | |
1730 | 1752 |
| |
1731 | 1753 |
| |
1732 | 1754 |
| |
| |||
1739 | 1761 |
| |
1740 | 1762 |
| |
1741 | 1763 |
| |
1742 |
| - | |
| 1764 | + | |
1743 | 1765 |
| |
1744 | 1766 |
| |
1745 | 1767 |
| |
| |||
1789 | 1811 |
| |
1790 | 1812 |
| |
1791 | 1813 |
| |
1792 |
| - | |
| 1814 | + | |
1793 | 1815 |
| |
1794 | 1816 |
| |
1795 | 1817 |
| |
|
Lines changed: 17 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1280 | 1280 |
| |
1281 | 1281 |
| |
1282 | 1282 |
| |
1283 |
| - | |
| 1283 | + | |
| 1284 | + | |
1284 | 1285 |
| |
1285 | 1286 |
| |
1286 | 1287 |
| |
| |||
1291 | 1292 |
| |
1292 | 1293 |
| |
1293 | 1294 |
| |
1294 |
| - | |
1295 |
| - | |
1296 |
| - | |
| 1295 | + | |
| 1296 | + | |
| 1297 | + | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
1297 | 1309 |
| |
1298 | 1310 |
| |
1299 | 1311 |
| |
| |||
1304 | 1316 |
| |
1305 | 1317 |
| |
1306 | 1318 |
| |
1307 |
| - | |
1308 | 1319 |
| |
1309 | 1320 |
| |
1310 | 1321 |
| |
| |||
1372 | 1383 |
| |
1373 | 1384 |
| |
1374 | 1385 |
| |
1375 |
| - | |
| 1386 | + | |
1376 | 1387 |
| |
1377 | 1388 |
| |
1378 | 1389 |
| |
|
0 commit comments
Comments
(0)