Merge pull request #3403 from geky/lwip-fix-tcp-connect-error

lwip - Fixed error codes for failed TCP connect
pull/3558/head
Anna Bridge 2017-01-10 10:43:37 +00:00 committed by GitHub
commit 9e24117b68
1 changed files with 2 additions and 1 deletions

View File

@ -559,11 +559,12 @@ static nsapi_error_t mbed_lwip_err_remap(err_t err) {
switch (err) {
case ERR_OK:
case ERR_CLSD:
case ERR_RST:
return 0;
case ERR_MEM:
return NSAPI_ERROR_NO_MEMORY;
case ERR_CONN:
case ERR_RST:
case ERR_ABRT:
return NSAPI_ERROR_NO_CONNECTION;
case ERR_TIMEOUT:
case ERR_RTE: