bit better sockets

This commit is contained in:
alessandro.bason 2021-10-20 10:51:18 +01:00
parent c4d1ffe539
commit aa08240ec9
4 changed files with 111 additions and 25 deletions

2
http.c
View file

@ -289,7 +289,7 @@ http_response_t hcliSendRequest(http_client_t *ctx, http_request_t *req) {
goto skopen_error;
}
ctx->socket = skOpen();
ctx->socket = skOpen(SOCK_TCP);
if(ctx->socket == INVALID_SOCKET) {
err("couldn't open socket %s", skGetErrorString());
goto error;