mirror of
https://github.com/nmap/nmap.git
synced 2026-09-09 05:05:48 +00:00
Add explanatory comment
This commit is contained in:
parent
44a315b548
commit
37287ad664
1 changed files with 2 additions and 0 deletions
|
|
@ -344,6 +344,7 @@ static int ncat_listen_stream(int proto)
|
|||
if (o.idletimeout > 0)
|
||||
ms_to_timeval(tvp, o.idletimeout);
|
||||
|
||||
/* The idle timer should only be running when there are active connections */
|
||||
if (get_conn_count())
|
||||
fds_ready = fselect(client_fdlist.fdmax + 1, &readfds, &writefds, NULL, tvp);
|
||||
else
|
||||
|
|
@ -809,6 +810,7 @@ static int ncat_listen_dgram(int proto)
|
|||
if (o.idletimeout > 0)
|
||||
ms_to_timeval(tvp, o.idletimeout);
|
||||
|
||||
/* The idle timer should only be running when there are active connections */
|
||||
if (get_conn_count())
|
||||
fds_ready = fselect(listen_fdlist.fdmax + 1, &fds, NULL, NULL, tvp);
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue