On FreeBSD I see ECONNRESET being returned from check_connection_completion
in ssl_connect. This happens before entering the SSL states, which return
EPROTO on failure.
Signed-off-by: Ed Maste <emaste@adaranet.com>
Signed-off-by: Ben Pfaff <blp@nicira.com>
ovs_fatal(0, "unexpected vconn_connect() return value %d (%s)",
error, strerror(error));
}
ovs_fatal(0, "unexpected vconn_connect() return value %d (%s)",
error, strerror(error));
}
+ } else if (!strcmp(type, "unix")) {
+ CHECK_ERRNO(error, EPIPE);
+ } else if (!strcmp(type, "ssl")) {
+ if (error != EPROTO && error != ECONNRESET) {
+ ovs_fatal(0, "unexpected vconn_connect() return value %d (%s)",
+ error, strerror(error));
+ }
- CHECK_ERRNO(error, !strcmp(type, "unix") ? EPIPE : EPROTO);
+ ovs_fatal(0, "invalid connection type %s", type);