Skip to content

Commit a8b714c

Browse files
committed
Add TCPSocket send timeout patch
1 parent 50177fa commit a8b714c

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
From 783e574f0989f71447a460742d30b202fbc681d2 Mon Sep 17 00:00:00 2001
2+
From: pennam <[email protected]>
3+
Date: Mon, 17 Jun 2024 17:15:25 +0200
4+
Subject: [PATCH 233/233] TCPSocket::send return NSAPI_ERROR_TIMEOUT if timeout
5+
is reached
6+
7+
---
8+
connectivity/netsocket/source/TCPSocket.cpp | 1 +
9+
1 file changed, 1 insertion(+)
10+
11+
diff --git a/connectivity/netsocket/source/TCPSocket.cpp b/connectivity/netsocket/source/TCPSocket.cpp
12+
index 368a2a36f1..f9efe6f8d1 100644
13+
--- a/connectivity/netsocket/source/TCPSocket.cpp
14+
+++ b/connectivity/netsocket/source/TCPSocket.cpp
15+
@@ -144,6 +144,7 @@ nsapi_size_or_error_t TCPSocket::send(const void *data, nsapi_size_t size)
16+
17+
if (flag & osFlagsError) {
18+
// Timeout break
19+
+ ret = NSAPI_ERROR_TIMEOUT;
20+
break;
21+
}
22+
} else if (ret < 0) {
23+
--
24+
2.43.0
25+

0 commit comments

Comments
 (0)