summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-04-15 00:35:47 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-04-15 00:37:12 +0300
commit5c1af60e194e434738f3a31a284fa182e14c814f (patch)
treefc20dc783d75dcebeecc9a600ea77908306855a6
parentd3ab4bc7ca24549a85a61db56e073951d347aa79 (diff)
downloadmicropython-5c1af60e194e434738f3a31a284fa182e14c814f.tar.gz
micropython-5c1af60e194e434738f3a31a284fa182e14c814f.zip
extmod/modlwip: More debug messages for various edge conditions.
-rw-r--r--extmod/modlwip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/extmod/modlwip.c b/extmod/modlwip.c
index 73beeb0715..4499aa9b37 100644
--- a/extmod/modlwip.c
+++ b/extmod/modlwip.c
@@ -309,6 +309,7 @@ STATIC err_t _lwip_tcp_accept(void *arg, struct tcp_pcb *newpcb, err_t err) {
tcp_recv(newpcb, _lwip_tcp_recv_unaccepted);
if (socket->incoming.connection != NULL) {
+ DEBUG_printf("_lwip_tcp_accept: Tried to queue >1 pcb waiting for accept\n");
// We need to handle this better. This single-level structure makes the
// backlog setting kind of pointless. FIXME
return ERR_BUF;
@@ -579,6 +580,7 @@ STATIC mp_obj_t lwip_socket_close(mp_obj_t self_in) {
socket_is_listener = true;
}
if (tcp_close(socket->pcb.tcp) != ERR_OK) {
+ DEBUG_printf("lwip_close: had to call tcp_abort()\n");
tcp_abort(socket->pcb.tcp);
}
break;