mirror of
https://github.com/nmap/nmap.git
synced 2026-01-30 18:19:05 +00:00
37d623d070f4ea526191a9fb9d460a5ab5115986
Sendto has logic to automatically sleep and retry a send if it fails. Fyodor tells me that it was once necessary because of some transient buffer shortage, though we can't remember the exact error it was in response to. The retry looks as though it has been slowly growing a list of exceptional error codes for which sleeping is not done: EPERM EACCES EMSGSIZE EADDRNOTAVAIL EINVAL The latest was EMSGSIZE in r19378. I changed this to only sleep on specific errors. Not knowing what the original error was, I have guessed ENOBUFS ENOMEM
Here is some documentation for Nmap, but these files are much less comprehensive than what you'll find at the actual Nmap documentation site ( http://nmap.org ).
Description
Languages
C
37.5%
Lua
28.1%
C++
16.8%
Shell
5.8%
Python
4.2%
Other
7.3%