}
int
-evhttp_connection_connect(struct evhttp_connection *evcon)
+evhttp_connection_connect_(struct evhttp_connection *evcon)
{
+ int old_state = evcon->state;
+
if (evcon->state == EVCON_CONNECTING)
return (0);
static void
http_connection_fail_done(struct evhttp_request *req, void *arg)
{
+ struct evhttp_connection *evcon = arg;
+ struct event_base *base = evhttp_connection_get_base(evcon);
+
/* An ENETUNREACH error results in an unrecoverable
- * evhttp_connection error (see evhttp_connection_fail()). The
+ * evhttp_connection error (see evhttp_connection_fail_()). The
* connection will be reset, and the user will be notified with a NULL
* req parameter. */
tt_assert(!req);