Lines Matching +full:response +full:- +full:timeout

4  * SPDX-License-Identifier: Apache-2.0
46 net_sin(addr)->sin_family = AF_INET; in setup_socket()
47 net_sin(addr)->sin_port = htons(port); in setup_socket()
48 inet_pton(family, server, &net_sin(addr)->sin_addr); in setup_socket()
50 net_sin6(addr)->sin6_family = AF_INET6; in setup_socket()
51 net_sin6(addr)->sin6_port = htons(port); in setup_socket()
52 inet_pton(family, server, &net_sin6(addr)->sin6_addr); in setup_socket()
66 family_str, -errno); in setup_socket()
67 ret = -errno; in setup_socket()
75 "option (%d)", family_str, -errno); in setup_socket()
76 ret = -errno; in setup_socket()
85 -errno); in setup_socket()
102 pos += snprintk(tmp + pos, sizeof(tmp) - pos, in payload_cb()
108 pos += snprintk(tmp + pos, sizeof(tmp) - pos, "0\r\n\r\n"); in payload_cb()
120 LOG_INF("Partial data received (%zd bytes)", rsp->data_len); in response_cb()
122 LOG_INF("All the data received (%zd bytes)", rsp->data_len); in response_cb()
125 LOG_INF("Response to %s", (const char *)user_data); in response_cb()
126 LOG_INF("Response status %s", rsp->http_status); in response_cb()
136 return -1; in connect_socket()
143 -errno); in connect_socket()
145 *sock = -1; in connect_socket()
146 ret = -errno; in connect_socket()
156 int sock4 = -1, sock6 = -1; in run_queries()
157 int32_t timeout = 3 * MSEC_PER_SEC; in run_queries() local
189 return -ECONNABORTED; in run_queries()
201 req.response = response_cb; in run_queries()
205 ret = http_client_req(sock4, &req, timeout, "IPv4 GET"); in run_queries()
219 req.response = response_cb; in run_queries()
223 ret = http_client_req(sock6, &req, timeout, "IPv6 GET"); in run_queries()
228 sock4 = -1; in run_queries()
229 sock6 = -1; in run_queries()
245 return -ECONNABORTED; in run_queries()
259 req.response = response_cb; in run_queries()
263 ret = http_client_req(sock4, &req, timeout, "IPv4 POST"); in run_queries()
279 req.response = response_cb; in run_queries()
283 ret = http_client_req(sock6, &req, timeout, "IPv6 POST"); in run_queries()
290 sock4 = -1; in run_queries()
291 sock6 = -1; in run_queries()
307 return -ECONNABORTED; in run_queries()
313 "Transfer-Encoding: chunked\r\n", in run_queries()
320 req.url = "/chunked-test"; in run_queries()
325 req.response = response_cb; in run_queries()
329 ret = http_client_req(sock4, &req, timeout, "IPv4 POST"); in run_queries()
337 "Transfer-Encoding: chunked\r\n", in run_queries()
344 req.url = "/chunked-test"; in run_queries()
349 req.response = response_cb; in run_queries()
353 ret = http_client_req(sock6, &req, timeout, "IPv6 POST"); in run_queries()