> For the complete documentation index, see [llms.txt](https://docs.9proxy.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.9proxy.com/developers/sdk/sdk-native-c/functions/setrenewsetting.md).

# SetRenewSetting

Configure automatic refresh limits and scope.

{% code overflow="wrap" %}

```c
GoInt SetRenewSetting(GoInt rateLimit, GoInt countLimit, GoUint8 onlyPortHasConfig)
```

{% endcode %}

***

## Parameters

* **rateLimit**: Refresh interval/rate limit.
* **countLimit**: Maximum number of refresh operations.
* **onlyPortHasConfig**: 0 = apply to active ports; 1 = only to active ports with configure-port enabled.

## Return Value

* GoInt: 0 on success.

## Example

```c
// example

SetRenewSetting(60, 100, 0);

```
