Skip to content
Snippets Groups Projects
Commit 3a871c6e authored by dmitriy.gerasimov's avatar dmitriy.gerasimov
Browse files

Merge branch 'bugs-4073-1' into 'master'

Request timeout must call err_callback

See merge request !279
parents f9a835bf 4e437f30
No related branches found
No related tags found
1 merge request!279Request timeout must call err_callback
Pipeline #6907 passed with stage
in 15 seconds
......@@ -126,6 +126,8 @@ static bool s_timer_timeout_check(void * a_arg)
dap_client_http_pvt_t * l_http_pvt = PVT(l_es);
log_it(L_WARNING,"Connection timeout for request http://%s:%u/%s, possible network problems or host is down",
l_http_pvt->uplink_addr, l_http_pvt->uplink_port, l_http_pvt->path);
if(l_http_pvt->error_callback)
l_http_pvt->error_callback(ETIMEDOUT, l_http_pvt->obj);
l_http_pvt->is_closed_by_timeout = true;
l_es->flags |= DAP_SOCK_SIGNAL_CLOSE;
}
......
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