The server will disconnect idle connections before this time. The connections will not be automatically refreshed in the background if this value is set to 0.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["\u003cp\u003eThe latest version available is 2.37.0-rc, with numerous prior versions, ranging from 2.36.0 down to 2.11.0, also accessible.\u003c/p\u003e\n"],["\u003cp\u003eThis page provides documentation for \u003ccode\u003eMaxConnectionRefreshOption\u003c/code\u003e, which determines the maximum time in milliseconds before the server disconnects idle connections.\u003c/p\u003e\n"],["\u003cp\u003eSetting \u003ccode\u003eMaxConnectionRefreshOption\u003c/code\u003e to \u003ccode\u003e0\u003c/code\u003e disables automatic background refreshing of connections.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMaxConnectionRefreshOption\u003c/code\u003e must be set to a value that is not lower than \u003ccode\u003eMinConnectionRefreshOption\u003c/code\u003e, or else it will be set to \u003ccode\u003eMinConnectionRefreshOption\u003c/code\u003e automatically.\u003c/p\u003e\n"],["\u003cp\u003eThe type alias for \u003ccode\u003eMaxConnectionRefreshOption\u003c/code\u003e is \u003ccode\u003estd::chrono::milliseconds\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Struct MaxConnectionRefreshOption (2.35.0)\n\nVersion 2.35.0keyboard_arrow_down\n\n- [2.42.0-rc (latest)](/cpp/docs/reference/bigtable/latest/structgoogle_1_1cloud_1_1bigtable_1_1MaxConnectionRefreshOption)\n- [2.41.0](/cpp/docs/reference/bigtable/2.41.0/structgoogle_1_1cloud_1_1bigtable_1_1MaxConnectionRefreshOption)\n- [2.40.0](/cpp/docs/reference/bigtable/2.40.0/structgoogle_1_1cloud_1_1bigtable_1_1MaxConnectionRefreshOption)\n- [2.39.0](/cpp/docs/reference/bigtable/2.39.0/structgoogle_1_1cloud_1_1bigtable_1_1MaxConnectionRefreshOption)\n- [2.38.0](/cpp/docs/reference/bigtable/2.38.0/structgoogle_1_1cloud_1_1bigtable_1_1MaxConnectionRefreshOption)\n- [2.37.0](/cpp/docs/reference/bigtable/2.37.0/structgoogle_1_1cloud_1_1bigtable_1_1MaxConnectionRefreshOption)\n- [2.36.0](/cpp/docs/reference/bigtable/2.36.0/structgoogle_1_1cloud_1_1bigtable_1_1MaxConnectionRefreshOption)\n- [2.35.0](/cpp/docs/reference/bigtable/2.35.0/structgoogle_1_1cloud_1_1bigtable_1_1MaxConnectionRefreshOption)\n- [2.34.0](/cpp/docs/reference/bigtable/2.34.0/structgoogle_1_1cloud_1_1bigtable_1_1MaxConnectionRefreshOption)\n- [2.33.0](/cpp/docs/reference/bigtable/2.33.0/structgoogle_1_1cloud_1_1bigtable_1_1MaxConnectionRefreshOption)\n- [2.32.0](/cpp/docs/reference/bigtable/2.32.0/structgoogle_1_1cloud_1_1bigtable_1_1MaxConnectionRefreshOption)\n- [2.31.0](/cpp/docs/reference/bigtable/2.31.0/structgoogle_1_1cloud_1_1bigtable_1_1MaxConnectionRefreshOption)\n- [2.30.0](/cpp/docs/reference/bigtable/2.30.0/structgoogle_1_1cloud_1_1bigtable_1_1MaxConnectionRefreshOption)\n- [2.29.0](/cpp/docs/reference/bigtable/2.29.0/structgoogle_1_1cloud_1_1bigtable_1_1MaxConnectionRefreshOption)\n- [2.28.0](/cpp/docs/reference/bigtable/2.28.0/structgoogle_1_1cloud_1_1bigtable_1_1MaxConnectionRefreshOption)\n- [2.27.0](/cpp/docs/reference/bigtable/2.27.0/structgoogle_1_1cloud_1_1bigtable_1_1MaxConnectionRefreshOption)\n- [2.26.0](/cpp/docs/reference/bigtable/2.26.0/structgoogle_1_1cloud_1_1bigtable_1_1MaxConnectionRefreshOption)\n- [2.25.1](/cpp/docs/reference/bigtable/2.25.1/structgoogle_1_1cloud_1_1bigtable_1_1MaxConnectionRefreshOption)\n- [2.24.0](/cpp/docs/reference/bigtable/2.24.0/structgoogle_1_1cloud_1_1bigtable_1_1MaxConnectionRefreshOption)\n- [2.23.0](/cpp/docs/reference/bigtable/2.23.0/structgoogle_1_1cloud_1_1bigtable_1_1MaxConnectionRefreshOption)\n- [2.22.1](/cpp/docs/reference/bigtable/2.22.1/structgoogle_1_1cloud_1_1bigtable_1_1MaxConnectionRefreshOption)\n- [2.21.0](/cpp/docs/reference/bigtable/2.21.0/structgoogle_1_1cloud_1_1bigtable_1_1MaxConnectionRefreshOption)\n- [2.20.0](/cpp/docs/reference/bigtable/2.20.0/structgoogle_1_1cloud_1_1bigtable_1_1MaxConnectionRefreshOption)\n- [2.19.0](/cpp/docs/reference/bigtable/2.19.0/structgoogle_1_1cloud_1_1bigtable_1_1MaxConnectionRefreshOption)\n- [2.18.0](/cpp/docs/reference/bigtable/2.18.0/structgoogle_1_1cloud_1_1bigtable_1_1MaxConnectionRefreshOption)\n- [2.17.0](/cpp/docs/reference/bigtable/2.17.0/structgoogle_1_1cloud_1_1bigtable_1_1MaxConnectionRefreshOption)\n- [2.16.0](/cpp/docs/reference/bigtable/2.16.0/structgoogle_1_1cloud_1_1bigtable_1_1MaxConnectionRefreshOption)\n- [2.15.1](/cpp/docs/reference/bigtable/2.15.1/structgoogle_1_1cloud_1_1bigtable_1_1MaxConnectionRefreshOption)\n- [2.14.0](/cpp/docs/reference/bigtable/2.14.0/structgoogle_1_1cloud_1_1bigtable_1_1MaxConnectionRefreshOption)\n- [2.13.0](/cpp/docs/reference/bigtable/2.13.0/structgoogle_1_1cloud_1_1bigtable_1_1MaxConnectionRefreshOption)\n- [2.12.0](/cpp/docs/reference/bigtable/2.12.0/structgoogle_1_1cloud_1_1bigtable_1_1MaxConnectionRefreshOption)\n- [2.11.0](/cpp/docs/reference/bigtable/2.11.0/structgoogle_1_1cloud_1_1bigtable_1_1MaxConnectionRefreshOption) \nMaximum time in ms to refresh connections. \nThe server will disconnect idle connections before this time. The connections will not be automatically refreshed in the background if this value is set to `0`.\n| **Note:** If this value is less than the value of [`MinConnectionRefreshOption`](/cpp/docs/reference/bigtable/2.35.0/structgoogle_1_1cloud_1_1bigtable_1_1MinConnectionRefreshOption), it will be set to the value of [`MinConnectionRefreshOption`](/cpp/docs/reference/bigtable/2.35.0/structgoogle_1_1cloud_1_1bigtable_1_1MinConnectionRefreshOption).\n\nType Aliases\n------------\n\n### Type\n\n**Alias Of** : `std::chrono::milliseconds`"]]