Update protocol/library/src/client.rs

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Gabriella Casap
2025-09-28 17:12:20 +01:00
committed by GitHub
parent e10c66dc30
commit a3b48c4662

View File

@@ -562,7 +562,7 @@ impl GurtClient {
return Err(GurtError::timeout("Request timeout"));
}
match timeout(Duration::from_millis(400), tls_stream.read(&mut temp_buffer)).await {
match timeout(self.config.read_timeout, tls_stream.read(&mut temp_buffer)).await {
Ok(Ok(0)) => {
if headers_parsed && !head_emitted {
return Err(GurtError::connection("Connection closed before response headers were fully received"));