From 39e45f4d07e1b5a86bf0695187f041f65be3cca1 Mon Sep 17 00:00:00 2001
From: "Dmitriy A. Gerasimov" <dmitriy.gerasimov@demlabs.net>
Date: Wed, 17 Feb 2021 17:37:09 +0700
Subject: [PATCH] [*] Removed cache expiration check

---
 .../net/server/http_server/http_client/dap_http_client.c   | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/dap-sdk/net/server/http_server/http_client/dap_http_client.c b/dap-sdk/net/server/http_server/http_client/dap_http_client.c
index 87cd6e909b..d7dadd46ae 100644
--- a/dap-sdk/net/server/http_server/http_client/dap_http_client.c
+++ b/dap-sdk/net/server/http_server/http_client/dap_http_client.c
@@ -588,12 +588,7 @@ void dap_http_client_write( dap_events_socket_t * a_esocket, void *a_arg )
             if ( l_http_client->proc ){
                 pthread_rwlock_rdlock(&l_http_client->proc->cache_rwlock);
                 if  ( ( l_http_client->proc->cache == NULL &&
-                        l_http_client->proc->data_write_callback ) ||
-                      ( l_http_client->proc->data_write_callback &&
-                        l_http_client->proc->cache->ts_expire < time(NULL) &&
-                        l_http_client->out_cache_position == NULL // Check if we haven't started
-                                                                  // to share cached data
-                        )
+                        l_http_client->proc->data_write_callback )
                     ){
                     if (l_http_client->proc->cache){
                         pthread_rwlock_unlock(&l_http_client->proc->cache_rwlock);
-- 
GitLab