Subject: | Detecting TCP bind errors. |
What happens when a bind failure occurs? To test edge cases in my
software, I intentionally specified a port I knew I did not have
permissions to. The following was printed to STDERR:
Error bind Permission denied (13) happened after Cleanup!
Which is generated by this code:
sub error {
my ($op, $errnum, $errstr, $id) = @_[ARG0..ARG3];
unless ( $_[HEAP]->{c}{$id} ) {
warn "Error $op $errstr ($errnum) happened after Cleanup!\n";
return;
}
The problem with this is that there is no event generated -- the parent
session is not notified and thus it will never know that the startup failed.
Or am I missing something obvious?
Thank you,
- Dmitri.