Improving behaviour to failed socket address parsing
Closed this issue · 0 comments
imag1ne commented
At present, a failure in parsing a socket address from a str
results in a panic. Recognizing that constructing an I/O error with payload requires heap allocation and is thus costly, an error is still returned if a DNS lookup fails. It could be argued that returning an error in this scenario is a more preferable behavior than just panic, isn't it?