summaryrefslogtreecommitdiff
path: root/http.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-01-24 15:06:58 +0100
committerdefault <nobody@localhost>2023-01-24 15:06:58 +0100
commitfd1e281cbae03ced989631abd400062af81c48c2 (patch)
tree6ad8e8fca29c57af3ece6b470868df6c8607fb76 /http.c
parent4baf56c4ce2c02363ed04cf11c068c6cbffcf199 (diff)
Use a shorter timeout for first output connections.
Diffstat (limited to 'http.c')
-rw-r--r--http.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/http.c b/http.c
index 54268e5..881a7e0 100644
--- a/http.c
+++ b/http.c
@@ -14,7 +14,8 @@
d_char *http_signed_request(snac *snac, char *method, char *url,
d_char *headers,
d_char *body, int b_size,
- int *status, d_char **payload, int *p_size)
+ int *status, d_char **payload, int *p_size,
+ int timeout)
/* does a signed HTTP request */
{
xs *l1;
@@ -95,7 +96,7 @@ d_char *http_signed_request(snac *snac, char *method, char *url,
hdrs = xs_dict_append(hdrs, "user-agent", USER_AGENT);
response = xs_http_request(method, url, hdrs,
- body, b_size, status, payload, p_size);
+ body, b_size, status, payload, p_size, timeout);
srv_archive("SEND", hdrs, body, b_size, *status, response, *payload, *p_size);