Honor proxy server timeout with one second buffer

This commit is contained in:
2023-07-06 17:15:53 +02:00
parent 0f40dcb5db
commit de3fcf8fc3
4 changed files with 6 additions and 2 deletions

@ -31,7 +31,7 @@ typedef struct {
char *addr, *s_addr;
SSL_CTX *ctx;
SSL *ssl;
long ts_start, ts_last, timeout_us;
long ts_start, ts_last, ts_last_send, timeout_us;
} sock;
void sock_error(sock *s, int ret);