---
name: "http_setTimeout"
section: "3"
platform: "linux"
package: "libhttpfetcher-dev"
version: "1.0.1-3"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/http_setTimeout"
---

# http\_setTimeout(3)

Changes the maximum amount of time HTTP Fetcher will wait on data.

## NAME

**http\_setTimeout** - Changes the maximum amount of time HTTP Fetcher will wait on data.

## SYNOPSIS

**#include \<http\_fetcher.h\>**\

**void http\_setTimeout(int** *seconds***);**\

## DESCRIPTION

**HTTP Fetcher will wait** *seconds* until timing out.  The default value is 30 seconds.  If the timeout value elapses without more data from the server, **http\_fetch** will return with an error.

If you pass a value less than 0, reads will not time out.

## RETURN VALUE

**http\_setTimeout** returns no value and should always\
 succeed.

## SEE ALSO

[**http\_fetch**(3)](/http_fetch/3.md), [**http\_setUserAgent**(3)](/http_setUserAgent/3.md), [**http\_setReferer**(3)](/http_setReferer/3.md), [**http\_parseFilename**(3)](/http_parseFilename/3.md), [**http\_perror**(3)](/http_perror/3.md), [**http\_strerror**(3)](/http_strerror/3.md)
