Skip to content

Commit 9e24117

Browse files
authored
Merge pull request #3403 from geky/lwip-fix-tcp-connect-error
lwip - Fixed error codes for failed TCP connect
2 parents 3a326c0 + 9b2a02f commit 9e24117

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

features/FEATURE_LWIP/lwip-interface/lwip_stack.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,11 +559,12 @@ static nsapi_error_t mbed_lwip_err_remap(err_t err) {
559559
switch (err) {
560560
case ERR_OK:
561561
case ERR_CLSD:
562-
case ERR_RST:
563562
return 0;
564563
case ERR_MEM:
565564
return NSAPI_ERROR_NO_MEMORY;
566565
case ERR_CONN:
566+
case ERR_RST:
567+
case ERR_ABRT:
567568
return NSAPI_ERROR_NO_CONNECTION;
568569
case ERR_TIMEOUT:
569570
case ERR_RTE:

0 commit comments

Comments
 (0)