Skip to content

Commit

Permalink
fix(mbedtls): Fix reconnect_callback is not triggered when handshake …
Browse files Browse the repository at this point in the history
…fail

Fix reconnect_callback not triggered and disconnect return error.

internal gitlab: 71a6715a
  • Loading branch information
wujiangang committed Dec 18, 2017
1 parent a3b79cc commit 4899e50
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ phy:
gitlab:
driver : 68fc7b06
lwip : 798515fd
mbedtls : 90a74e3b
mbedtls : 1d0dfd8f
Binary file modified lib/libmbedtls.a
Binary file not shown.
2 changes: 1 addition & 1 deletion third_party/mbedtls/app/espconn_mbedtls.c
Original file line number Diff line number Diff line change
Expand Up @@ -944,8 +944,8 @@ int __attribute__((weak)) mbedtls_parse_internal(int socket, sint8 error)
mbedtls_fail_info(Threadmsg, ret);
if(ret == MBEDTLS_ERR_SSL_PEER_CLOSE_NOTIFY){
Threadmsg->hs_status = ESPCONN_OK;
ets_post(lwIPThreadPrio, NETCONN_EVENT_CLOSE,(uint32)Threadmsg);
}
ets_post(lwIPThreadPrio, NETCONN_EVENT_CLOSE,(uint32)Threadmsg);
}
return ret;
}
Expand Down

0 comments on commit 4899e50

Please sign in to comment.