From b5b57aca0296a6352aa532929f6a864727ef1508 Mon Sep 17 00:00:00 2001 From: Joseph Henry Date: Thu, 8 Oct 2015 21:04:47 -0400 Subject: Whack! --- netcon/NetconEthernetTap.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'netcon') diff --git a/netcon/NetconEthernetTap.cpp b/netcon/NetconEthernetTap.cpp index 94fd2e9f..3147ff59 100644 --- a/netcon/NetconEthernetTap.cpp +++ b/netcon/NetconEthernetTap.cpp @@ -307,7 +307,7 @@ void NetconEthernetTap::closeAll() closeConnection(tcp_connections.front()); } -#define ZT_LWIP_TCP_TIMER_INTERVAL 50 +#define ZT_LWIP_TCP_TIMER_INTERVAL 10 void NetconEthernetTap::threadMain() throw() @@ -657,7 +657,8 @@ err_t NetconEthernetTap::nc_sent(void* arg, struct tcp_pcb *tpcb, u16_t len) if(len) { //fprintf(stderr, "ACKING len = %d, setting read-notify = true, (sndbuf = %d)\n", len, l->conn->pcb->snd_buf); l->tap->_phy.setNotifyReadable(l->conn->dataSock, true); - l->tap->handle_write(l->conn); + l->tap->_phy.whack(); + //l->tap->handle_write(l->conn); } return ERR_OK; } -- cgit v1.2.3