|
@@ -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;
|
|
|
}
|