mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-16 19:43:47 +00:00
Initial work to check available space in socket buffers to send pcaps
This commit is contained in:
parent
4390308eda
commit
6f0104045a
3 changed files with 32 additions and 0 deletions
|
|
@ -6614,6 +6614,13 @@ void NetworkInterface::deliverLiveCapture(const struct pcap_pkthdr * const h,
|
|||
|
||||
num_found++;
|
||||
|
||||
#if 0
|
||||
if(!HTTPserver::sender_queue_free_space(c->conn, h->len)) {
|
||||
ntop->getTrace()->traceEvent(TRACE_NORMAL, "Skipping packet, buffer full");
|
||||
continue;
|
||||
}
|
||||
#endif
|
||||
|
||||
if(c->live_capture.capture_until < h->ts.tv_sec || c->live_capture.stopped)
|
||||
http_client_disconnected = true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue