Skip to content
Snippets Groups Projects
Commit 39e45f4d authored by Dmitriy A. Gerasimov's avatar Dmitriy A. Gerasimov
Browse files

[*] Removed cache expiration check

parent b323c6a7
No related branches found
No related tags found
No related merge requests found
Pipeline #7236 passed with stage
in 12 seconds
...@@ -588,12 +588,7 @@ void dap_http_client_write( dap_events_socket_t * a_esocket, void *a_arg ) ...@@ -588,12 +588,7 @@ void dap_http_client_write( dap_events_socket_t * a_esocket, void *a_arg )
if ( l_http_client->proc ){ if ( l_http_client->proc ){
pthread_rwlock_rdlock(&l_http_client->proc->cache_rwlock); pthread_rwlock_rdlock(&l_http_client->proc->cache_rwlock);
if ( ( l_http_client->proc->cache == NULL && 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->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
)
){ ){
if (l_http_client->proc->cache){ if (l_http_client->proc->cache){
pthread_rwlock_unlock(&l_http_client->proc->cache_rwlock); pthread_rwlock_unlock(&l_http_client->proc->cache_rwlock);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment