Support to close idle connections in HTTP/TCP clients/servers after a configurable timeout