Open defanor opened 5 years ago
Although it looks like connectTCPAddr
should handle that, since leaking file descriptors from it doesn't seem like a sensible behaviour. Submitted a PR there, and perhaps ftphs should just increase the required MissingH version once/if it will be fixed there.
connectFTP
doesn't close sockets on connection failure, only throwing an exception. I'm not sure whether it would be more appropriate to fix inconnectFTP
itself or in MissingH'sconnectTCP
/connectTCPAddr
(since it's not clear what is the intended behaviour ofconnectTCP
), but in programs usingconnectFTP
there's no socket to close, so apparently should be fixed in one of those.