Commit Briefs
don't die for OOM
instead, drop the current connection (we can't do anything about it) and try to continue to work. OOM can be a temporary situation, and in every case it's not nice to terminate other in-flight connections. To do so, refactor the freeing of the connection into conn_free, which now also looks for the state of the timeout. In every case we reach conn_free the timeout is not pending, but it doesn't hurt to check for it anyway. Future changes may want to free early.
cast argument to is*()
otherwise there can be issues on arches with signed chars (as amd64)
rething the build system for -main, keep autotools for -portable
use the native bsd.prog.mk infrastructure to build the -main branch: now it targets OpenBSD only. The -portable branch remains and keeps using autotools to facilitate the porting for other systems.
crank up MAXSOCK to 32
MAXSOCK is the maximum number of local connections to handle, 4 was a bit low...
don't hardcode the ssh path
could be interesting to determine it at configure-time though