[go: up one dir, main page]

Skip to content

k6 extension to close idle connections at a defined interval

License

Notifications You must be signed in to change notification settings

mohitk05/xk6-close-idle-connections

Repository files navigation

xk6-close-idle-connections

k6 extension to close idle TCP connections (per VU) at a defined interval.

Build

xk6 build v0.52.0 --with github.com/mohitk05/xk6-close-idle-connections@latest

Usage

import * as closeIdleConnections from 'k6/x/close_idle_conn';

export default function () {
  // Will only run once for a VU, subsequent calls will return immediately
  closeIdleConnections.start(10); // closes idle connections every 10 seconds
  // Your test script
}

export function teardown() {
  closeIdleConnections.stop();
}

About

k6 extension to close idle connections at a defined interval

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages