diff options
author | Joseph Henry <joseph.henry@zerotier.com> | 2015-10-16 14:43:38 -0400 |
---|---|---|
committer | Joseph Henry <joseph.henry@zerotier.com> | 2015-10-16 14:43:38 -0400 |
commit | b96c08f35c2afd07daf261451daad7004c73f42d (patch) | |
tree | f2d11b86e47278c906cb5b5d602c755173e8d4a7 /netcon/NetconEthernetTap.cpp | |
parent | 3e8e025704d6965cd0d67213bcca7d2ae1a70036 (diff) | |
download | infinitytier-b96c08f35c2afd07daf261451daad7004c73f42d.tar.gz infinitytier-b96c08f35c2afd07daf261451daad7004c73f42d.zip |
Fixed nginx listen() bug
Diffstat (limited to 'netcon/NetconEthernetTap.cpp')
-rw-r--r-- | netcon/NetconEthernetTap.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/netcon/NetconEthernetTap.cpp b/netcon/NetconEthernetTap.cpp index 72d6273a..462e366d 100644 --- a/netcon/NetconEthernetTap.cpp +++ b/netcon/NetconEthernetTap.cpp @@ -925,6 +925,7 @@ void NetconEthernetTap::handle_listen(PhySocket *sock, void **uptr, struct liste send_return_value(conn, ERR_OK, ERR_OK); } else { + /* fprintf(stderr, "handle_listen(): unable to allocate memory for new listening PCB\n"); // FIXME: This does not have an equivalent errno value // lwip will reclaim space with a tcp_listen call since a PCB in a LISTEN @@ -933,13 +934,16 @@ void NetconEthernetTap::handle_listen(PhySocket *sock, void **uptr, struct liste // socket, even if the reason isn't describing what really happened internally. // See: http://lwip.wikia.com/wiki/Raw/TCP send_return_value(conn, -1, EBADF); - } + */ + } } else { + /* // We can't find a connection mapped to the socket fd provided fprintf(stderr, "handle_listen(): can't locate connection for PCB\n"); send_return_value(conn, -1, EBADF); - } + */ + } } /* |