- Notifications
You must be signed in to change notification settings - Fork4.9k
Commitf0256c7
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 parent9c7dc89 commitf0256c7
2 files changed
+48
-15
lines changedLines changed: 31 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1676 | 1676 |
| |
1677 | 1677 |
| |
1678 | 1678 |
| |
1679 |
| - | |
| 1679 | + | |
1680 | 1680 |
| |
1681 | 1681 |
| |
1682 | 1682 |
| |
| |||
1688 | 1688 |
| |
1689 | 1689 |
| |
1690 | 1690 |
| |
1691 |
| - | |
| 1691 | + | |
| 1692 | + | |
1692 | 1693 |
| |
1693 | 1694 |
| |
1694 | 1695 |
| |
1695 | 1696 |
| |
1696 | 1697 |
| |
1697 | 1698 |
| |
1698 | 1699 |
| |
1699 |
| - | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
1700 | 1711 |
| |
1701 | 1712 |
| |
1702 | 1713 |
| |
1703 | 1714 |
| |
1704 | 1715 |
| |
1705 | 1716 |
| |
1706 | 1717 |
| |
1707 |
| - | |
| 1718 | + | |
1708 | 1719 |
| |
1709 | 1720 |
| |
1710 | 1721 |
| |
| |||
1723 | 1734 |
| |
1724 | 1735 |
| |
1725 | 1736 |
| |
1726 |
| - | |
| 1737 | + | |
| 1738 | + | |
1727 | 1739 |
| |
1728 | 1740 |
| |
1729 | 1741 |
| |
| |||
1742 | 1754 |
| |
1743 | 1755 |
| |
1744 | 1756 |
| |
1745 |
| - | |
| 1757 | + | |
| 1758 | + | |
1746 | 1759 |
| |
1747 | 1760 |
| |
1748 | 1761 |
| |
1749 | 1762 |
| |
1750 | 1763 |
| |
1751 | 1764 |
| |
1752 |
| - | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
| 1771 | + | |
| 1772 | + | |
| 1773 | + | |
| 1774 | + | |
1753 | 1775 |
| |
1754 | 1776 |
| |
1755 | 1777 |
| |
| |||
1762 | 1784 |
| |
1763 | 1785 |
| |
1764 | 1786 |
| |
1765 |
| - | |
| 1787 | + | |
1766 | 1788 |
| |
1767 | 1789 |
| |
1768 | 1790 |
| |
| |||
1812 | 1834 |
| |
1813 | 1835 |
| |
1814 | 1836 |
| |
1815 |
| - | |
| 1837 | + | |
1816 | 1838 |
| |
1817 | 1839 |
| |
1818 | 1840 |
| |
|
Lines changed: 17 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1470 | 1470 |
| |
1471 | 1471 |
| |
1472 | 1472 |
| |
1473 |
| - | |
| 1473 | + | |
| 1474 | + | |
1474 | 1475 |
| |
1475 | 1476 |
| |
1476 | 1477 |
| |
| |||
1481 | 1482 |
| |
1482 | 1483 |
| |
1483 | 1484 |
| |
1484 |
| - | |
1485 |
| - | |
1486 |
| - | |
| 1485 | + | |
| 1486 | + | |
| 1487 | + | |
| 1488 | + | |
| 1489 | + | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
1487 | 1499 |
| |
1488 | 1500 |
| |
1489 | 1501 |
| |
| |||
1494 | 1506 |
| |
1495 | 1507 |
| |
1496 | 1508 |
| |
1497 |
| - | |
1498 | 1509 |
| |
1499 | 1510 |
| |
1500 | 1511 |
| |
| |||
1562 | 1573 |
| |
1563 | 1574 |
| |
1564 | 1575 |
| |
1565 |
| - | |
| 1576 | + | |
1566 | 1577 |
| |
1567 | 1578 |
| |
1568 | 1579 |
| |
|
0 commit comments
Comments
(0)