Skip to content

Commit

Permalink
fix: HTTP timeout should kick in after 10s from sending the request (#68
Browse files Browse the repository at this point in the history
)
  • Loading branch information
patrykcieszkowski authored Jul 4, 2022
1 parent 381873a commit c4bb03b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/command/http-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ export const httpCmd = (options: HttpOptions, resolverFn?: ResolverType): Reques
dnsLookup: dnsResolver,
dnsLookupIpVersion: 4 as DnsLookupIpVersion,
http2: options.query.protocol === 'http2',
timeout: {response: 10_000},
timeout: {
request: 10_000,
response: 10_000,
},
https: {rejectUnauthorized: false},
headers: {
...options.query.headers,
Expand Down

0 comments on commit c4bb03b

Please sign in to comment.