mirror of
https://github.com/nmap/nmap.git
synced 2025-12-17 05:09:00 +00:00
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
149 KiB
149 KiB